source: rtems/cpukit/itron/src/fmempool.c @ 9fbe22cc

4.104.114.84.95
Last change on this file since 9fbe22cc was 9fbe22cc, checked in by Joel Sherrill <joel.sherrill@…>, on 07/01/02 at 22:35:43

2002-07-01 Joel Sherrill <joel@…>

  • Mega patch merge to change the format of the object IDs to loosen the dependency between the SCORE and the various APIs. There was considerable work to simplify the object name management and it appears that the name_table field is no longer needed. This patch also includes the addition of the internal mutex which is currently only used to protect some types of allocation and deallocation. This significantly can reduce context switch latency under certain circumstances. In particular, some heap/region operations were O(n) and had dispatching disabled. This should help enormously. With this merge, the patch is not as clean as it should be. In particular, the documentation has not been modified to reflect the new object ID layout, the IDs in the test screens are not updated, and _Objects_Get_information needs to be a real routine not inlined. As part of this patch a lot of MP code for thread/proxy blocking was made conditional and cleaned up.
  • src/cre_mbf.c, src/cre_sem.c, src/eventflags.c, src/fmempool.c, src/itronsem.c, src/mbox.c, src/msgbuffer.c, src/port.c, src/task.c, src/vmempool.c: Modified as part of above.
  • Property mode set to 100644
File size: 2.4 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-1999.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.OARcorp.com/rtems/license.html.
8 *
9 *  $Id$
10 */
11
12#if HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <itron.h>
17
18#include <rtems/itron/fmempool.h>
19
20/*   
21 *  _ITRON_Fixed_memory_pool_Manager_initialization
22 * 
23 *  This routine initializes all fixed memory pool manager related
24 *  data structures.
25 *
26 *  Input parameters:
27 *    maximum_fixed_memory_pools - maximum configured fixed memory pools
28 *
29 *  Output parameters:  NONE
30 */
31
32void _ITRON_Fixed_memory_pool_Manager_initialization(
33  unsigned32 maximum_fixed_memory_pools
34)
35{
36  _Objects_Initialize_information(
37    &_ITRON_Fixed_memory_pool_Information, /* object information table */
38    OBJECTS_ITRON_API,                 /* object API */
39    OBJECTS_ITRON_FIXED_MEMORY_POOLS,  /* object class */
40    maximum_fixed_memory_pools,        /* maximum objects of this class */
41    sizeof( ITRON_Fixed_memory_pool_Control ),
42                                 /* size of this object's control block */
43    FALSE,                       /* TRUE if names for this object are strings */
44    ITRON_MAXIMUM_NAME_LENGTH    /* maximum length of each object's name */
45#if defined(RTEMS_MULTIPROCESSING)
46    ,
47    FALSE,                       /* TRUE if this is a global object class */
48    NULL                         /* Proxy extraction support callout */
49#endif
50  );
51   
52  /*
53   *  Register the MP Process Packet routine.
54   *
55   *  NOTE: No MP Support YET in RTEMS ITRON implementation.
56   */
57 
58}
59
60/*
61 *  cre_mpf - Create Fixed-Size Memorypool
62 */
63
64ER cre_mpf(
65  ID      mpfid,
66  T_CMPF *pk_cmpf
67)
68{
69  return E_OK;
70}
71
72/*
73 *  del_mpf - Delete Fixed-Size Memorypool
74 */
75
76ER del_mpf(
77  ID mpfid
78)
79{
80  return E_OK;
81}
82
83/*
84 *  get_blf - Get Fixed-Size Memory Block
85 */
86
87ER get_blf(
88  VP *p_blf,
89  ID  mpfid
90)
91{
92  return E_OK;
93}
94
95/*
96 *  pget_blf - Poll and Get Fixed-Size Memory Block
97 */
98
99ER pget_blf(
100  VP *p_blf,
101  ID  mpfid
102)
103{
104  return E_OK;
105}
106
107/*
108 *  tget_blf - Get Fixed-Size Memory Block with Timeout
109 */
110
111ER tget_blf(
112  VP *p_blf,
113  ID  mpfid,
114  TMO tmout
115)
116{
117  return E_OK;
118}
119
120/*
121 *  rel_blf - Release Fixed-Size Memory Block
122 */
123
124ER rel_blf(
125  ID mpfid,
126  VP blf
127)
128{
129  return E_OK;
130}
131
132/*
133 *  ref_mpf - Reference Fixed-Size Memorypool Status
134 */
135
136ER ref_mpf(
137  T_RMPF *pk_rmpf,
138  ID      mpfid
139)
140{
141  return E_OK;
142}
143
Note: See TracBrowser for help on using the repository browser.