RTEMS: cpukit/include/rtems/extensionimpl.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
extensionimpl.h
Go to the documentation of this file.
1
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.org/license/LICENSE.
16 */
17
18#ifndef _RTEMS_EXTENSIONIMPL_H
19#define _RTEMS_EXTENSIONIMPL_H
20
21#include <rtems/extensiondata.h>
22#include <rtems/score/objectimpl.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
36 RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void )
37{
38 return (Extension_Control *) _Objects_Allocate( &_Extension_Information );
39}
40
41 RTEMS_INLINE_ROUTINE void _Extension_Free (
42 Extension_Control *the_extension
43)
44{
45 _Objects_Free( &_Extension_Information, &the_extension->Object );
46}
47
48 RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get( Objects_Id id )
49{
50 return (Extension_Control *)
51 _Objects_Get_no_protection( id, &_Extension_Information );
52}
53
56#ifdef __cplusplus
57}
58#endif
59
60#endif
61/* end of include file */
extensiondata.h
Classic User Extensions Data Structures.
_Extension_Information
Objects_Information _Extension_Information
The Classic Extensions objects information.
RTEMS_INLINE_ROUTINE
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
_Objects_Free
RTEMS_INLINE_ROUTINE void _Objects_Free(Objects_Information *information, Objects_Control *the_object)
Frees an object.
Definition: objectimpl.h:930
_Objects_Allocate
Objects_Control * _Objects_Allocate(Objects_Information *information)
Allocates an object.
Definition: objectallocate.c:42
Objects_Id
uint32_t Objects_Id
Definition: object.h:80
_Objects_Get_no_protection
Objects_Control * _Objects_Get_no_protection(Objects_Id id, const Objects_Information *information)
Maps object ids to object control blocks.
Definition: objectgetnoprotection.c:23
objectimpl.h
Inlined Routines in the Object Handler.
Extension_Control
Definition: extensiondata.h:35