RTEMS
dpmemimpl.h
Go to the documentation of this file.
1 
9 /* COPYRIGHT (c) 1989-2008.
10  * On-Line Applications Research Corporation (OAR).
11  *
12  * The license and distribution terms for this file may be
13  * found in the file LICENSE in this distribution or at
14  * http://www.rtems.org/license/LICENSE.
15  */
16 
17 #ifndef _RTEMS_RTEMS_DPMEM_INL
18 #define _RTEMS_RTEMS_DPMEM_INL
19 
20 #include <rtems/rtems/dpmemdata.h>
21 #include <rtems/score/objectimpl.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
44 {
47 }
48 
58 )
59 {
61 }
62 
63 RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get(
64  Objects_Id id,
65  ISR_lock_Context *lock_context
66 )
67 {
69  _Objects_Get( id, lock_context, &_Dual_ported_memory_Information );
70 }
71 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif /* _RTEMS_RTEMS_DPMEM_INL */
79 /* end of include file */
Classic Dual Ported Memory Manager Data Structures.
static __inline__ Dual_ported_memory_Control * _Dual_ported_memory_Allocate(void)
Allocates a port control block from the inactive chain of free port control blocks.
Definition: dpmemimpl.h:43
Objects_Control * _Objects_Allocate(Objects_Information *information)
Allocates an object.
Inlined Routines in the Object Handler.
static __inline__ void _Dual_ported_memory_Free(Dual_ported_memory_Control *the_port)
Frees a port control block to the inactive chain of free port control blocks.
Definition: dpmemimpl.h:56
Objects_Information _Dual_ported_memory_Information
The Classic Dual Ported Memory objects information.
Objects_Control Object
Definition: dpmemdata.h:40
uint32_t Objects_Id
Definition: object.h:80
Objects_Control * _Objects_Get(Objects_Id id, ISR_lock_Context *lock_context, const Objects_Information *information)
Maps the specified object identifier to the associated local object control block.
Local ISR lock context for acquire and release pairs.
Definition: isrlock.h:65
#define RTEMS_INLINE_ROUTINE
Gives a hint to the compiler in a function declaration to inline this function.
Definition: basedefs.h:683
static __inline__ void _Objects_Free(Objects_Information *information, Objects_Control *the_object)
Frees an object.
Definition: objectimpl.h:933