source: rtems/cpukit/itron/macros/rtems/itron/fmempool.inl @ ed11bb26

4.104.114.84.95
Last change on this file since ed11bb26 was ed11bb26, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/21/04 at 06:05:23

Add doxygen preamble.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/**
2 * @file rtems/itron/fmempool.inl
3 */
4
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.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#ifndef __ITRON_FIXED_MEMORY_POOL_inl_
17#define __ITRON_FIXED_MEMORY_POOL_inl_
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*
24 *  _ITRON_Fixed_memory_pool_Allocate
25 */
26
27#define _ITRON_Fixed_memory_pool_Allocate( _mpfid ) \
28  (ITRON_Fixed_memory_pool_Control *)_ITRON_Objects_Allocate_by_index( \
29    &_ITRON_Fixed_memory_pool_Information, \
30    (_mpfid), \
31    sizeof(ITRON_Fixed_memory_pool_Control) \
32  )
33
34/*
35 *  _ITRON_Fixed_memory_pool_Clarify_allocation_id_error
36 */
37
38#define _ITRON_Fixed_memory_pool_Clarify_allocation_id_error( _id ) \
39  _ITRON_Objects_Clarify_allocation_id_error( \
40      &_ITRON_Fixed_memory_pool_Information, (_id) )
41
42/*
43 *  _ITRON_Fixed_memory_pool_Clarify_get_id_error
44 */
45
46#define _ITRON_Fixed_memory_pool_Clarify_get_id_error( _id ) \
47 _ITRON_Objects_Clarify_get_id_error( \
48    &_ITRON_Fixed_memory_pool_Information, (_id) )
49
50/*
51 *  _ITRON_Fixed_memory_pool_Free
52 */
53
54#define _ITRON_Fixed_memory_pool_Free( _the_fixed_memory_pool ) \
55  _ITRON_Objects_Free( \
56    &_ITRON_Fixed_memory_pool_Information, \
57    &(_the_fixed_memory_pool)->Object \
58  )
59
60/*
61 *  _ITRON_Fixed_memory_pool_Get
62 */
63
64#define _ITRON_Fixed_memory_pool_Get( _id, _location ) \
65  (ITRON_Fixed_memory_pool_Control *) \
66    _ITRON_Objects_Get( &_ITRON_Fixed_memory_pool_Information, \
67        (_id), (_location) )
68
69/*
70 *  _ITRON_Fixed_memory_pool_Is_null
71 */
72
73#define _ITRON_Fixed_memory_pool_Is_null( _the_fixed_memory_pool ) \
74  ( (_the_fixed_memory_pool) == NULL )
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif
81/* end of include file */
82
Note: See TracBrowser for help on using the repository browser.