source: rtems/cpukit/posix/inline/rtems/posix/intr.inl @ 180295ad

4.104.114.84.95
Last change on this file since 180295ad was 180295ad, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/21/05 at 07:29:05

New header guards.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file rtems/posix/intr.inl
3 */
4
5/*  rtems/posix/intr.inl
6 *
7 *  This include file contains the static inline 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_INTR_INL
21#define _RTEMS_POSIX_INTR_INL
22
23/*PAGE
24 *
25 *  _POSIX_Interrupt_Allocate
26 */
27 
28RTEMS_INLINE_ROUTINE POSIX_Interrupt_Handler_control *
29  _POSIX_Interrupt_Allocate( void )
30{
31  return (POSIX_Interrupt_Handler_control *)
32    _Objects_Allocate( &_POSIX_Interrupt_Handlers_Information );
33}
34 
35/*PAGE
36 *
37 *  _POSIX_Interrupt_Free
38 */
39 
40RTEMS_INLINE_ROUTINE void _POSIX_Interrupt_Free (
41  POSIX_Interrupt_Handler_control *the_intr
42)
43{
44  _Objects_Free( &_POSIX_Interrupt_Handlers_Information, &the_intr->Object );
45}
46 
47/*PAGE
48 *
49 *  _POSIX_Interrupt_Get
50 */
51 
52RTEMS_INLINE_ROUTINE POSIX_Interrupt_Control *_POSIX_Interrupt_Get (
53  Objects_Id         id,
54  Objects_Locations *location
55)
56{
57  return (POSIX_Interrupt_Control *)
58    _Objects_Get( &_POSIX_Interrupt_Handlers_Information, id, location );
59}
60 
61/*PAGE
62 *
63 *  _POSIX_Interrupt_Is_null
64 */
65 
66RTEMS_INLINE_ROUTINE boolean _POSIX_Interrupt_Is_null (
67  POSIX_Interrupt_Handler_control *the_intr
68)
69{
70  return !the_intr;
71}
72
73#endif
74/*  end of include file */
75
Note: See TracBrowser for help on using the repository browser.