1 | /* rtems/posix/intr.inl |
---|
2 | * |
---|
3 | * This include file contains the static inline implementation of the private |
---|
4 | * inlined routines for POSIX Interrupt Manager |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989-1999. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.OARcorp.com/rtems/license.html. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef __RTEMS_POSIX_INTERRUPT_inl |
---|
17 | #define __RTEMS_POSIX_INTERRUPT_inl |
---|
18 | |
---|
19 | /*PAGE |
---|
20 | * |
---|
21 | * _POSIX_Interrupt_Allocate |
---|
22 | */ |
---|
23 | |
---|
24 | RTEMS_INLINE_ROUTINE POSIX_Interrupt_Handler_control * |
---|
25 | _POSIX_Interrupt_Allocate( void ) |
---|
26 | { |
---|
27 | return (POSIX_Interrupt_Handler_control *) |
---|
28 | _Objects_Allocate( &_POSIX_Interrupt_Handlers_Information ); |
---|
29 | } |
---|
30 | |
---|
31 | /*PAGE |
---|
32 | * |
---|
33 | * _POSIX_Interrupt_Free |
---|
34 | */ |
---|
35 | |
---|
36 | RTEMS_INLINE_ROUTINE void _POSIX_Interrupt_Free ( |
---|
37 | POSIX_Interrupt_Handler_control *the_intr |
---|
38 | ) |
---|
39 | { |
---|
40 | _Objects_Free( &_POSIX_Interrupt_Handlers_Information, &the_intr->Object ); |
---|
41 | } |
---|
42 | |
---|
43 | /*PAGE |
---|
44 | * |
---|
45 | * _POSIX_Interrupt_Get |
---|
46 | */ |
---|
47 | |
---|
48 | RTEMS_INLINE_ROUTINE POSIX_Interrupt_Control *_POSIX_Interrupt_Get ( |
---|
49 | Objects_Id id, |
---|
50 | Objects_Locations *location |
---|
51 | ) |
---|
52 | { |
---|
53 | return (POSIX_Interrupt_Control *) |
---|
54 | _Objects_Get( &_POSIX_Interrupt_Handlers_Information, id, location ); |
---|
55 | } |
---|
56 | |
---|
57 | /*PAGE |
---|
58 | * |
---|
59 | * _POSIX_Interrupt_Is_null |
---|
60 | */ |
---|
61 | |
---|
62 | RTEMS_INLINE_ROUTINE boolean _POSIX_Interrupt_Is_null ( |
---|
63 | POSIX_Interrupt_Handler_control *the_intr |
---|
64 | ) |
---|
65 | { |
---|
66 | return !the_intr; |
---|
67 | } |
---|
68 | |
---|
69 | #endif |
---|
70 | /* end of include file */ |
---|
71 | |
---|