4.104.114.84.95
Line | |
---|
1 | /** |
---|
2 | * @file rtems/posix/intr.inl |
---|
3 | */ |
---|
4 | |
---|
5 | /* rtems/posix/intr.inl |
---|
6 | * |
---|
7 | * This include file contains the macro implementation of the private |
---|
8 | * inlined routines for POSIX Interrupt Manager |
---|
9 | * |
---|
10 | * COPYRIGHT (c) 1989-1999. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.com/license/LICENSE. |
---|
16 | * |
---|
17 | * $Id$ |
---|
18 | */ |
---|
19 | |
---|
20 | #ifndef __RTEMS_POSIX_INTERRUPT_inl |
---|
21 | #define __RTEMS_POSIX_INTERRUPT_inl |
---|
22 | |
---|
23 | /*PAGE |
---|
24 | * |
---|
25 | * _POSIX_Interrupt_Allocate |
---|
26 | */ |
---|
27 | |
---|
28 | #define _POSIX_Interrupt_Allocate() \ |
---|
29 | (POSIX_Interrupt_Handler_control *) \ |
---|
30 | _Objects_Allocate( &_POSIX_Interrupt_Handlers_Information ) |
---|
31 | |
---|
32 | /*PAGE |
---|
33 | * |
---|
34 | * _POSIX_Interrupt_Free |
---|
35 | */ |
---|
36 | |
---|
37 | #define _POSIX_Interrupt_Free( _the_intr ) \ |
---|
38 | _Objects_Free( &_POSIX_Interrupt_Handlers_Information, &(_the_intr)->Object ) |
---|
39 | |
---|
40 | /*PAGE |
---|
41 | * |
---|
42 | * _POSIX_Interrupt_Get |
---|
43 | */ |
---|
44 | |
---|
45 | #define _POSIX_Interrupt_Get( _id, _location ) \ |
---|
46 | (POSIX_Interrupt_Control *) \ |
---|
47 | _Objects_Get( &_POSIX_Interrupt_Handlers_Information, (_id), (_location) ) |
---|
48 | |
---|
49 | /*PAGE |
---|
50 | * |
---|
51 | * _POSIX_Interrupt_Is_null |
---|
52 | */ |
---|
53 | |
---|
54 | #define _POSIX_Interrupt_Is_null( _the_intr ) \ |
---|
55 | (!(_the_intr)) |
---|
56 | |
---|
57 | #endif |
---|
58 | /* end of include file */ |
---|
59 | |
---|
Note: See
TracBrowser
for help on using the repository browser.