Lines Matching full:memory
37 * \defgroup memb Memory block management functions
39 * The memory block allocation routines provide a simple yet powerful
40 * set of functions for managing a set of memory blocks of fixed
41 * size. A set of memory blocks is statically declared with the
42 * MEMB() macro. Memory blocks are allocated from the declared
43 * memory by the memb_alloc() function, and are deallocated with the
47 * declared per C module, and the name scope of a MEMB() memory
50 * The following example shows how to declare and use a memory block
51 * called "cmem" which has 8 chunks of memory with each memory chunk
60 * Memory block allocation routines.
78 * Declare a memory block.
80 * This macro is used to staticall declare a block of memory that can
90 * \param name The name of the memory block (later used with
93 * \param size The size of each memory chunk, in bytes.
95 * \param num The total number of memory chunks in the block.
113 * Initialize a memory block that was declared with MEMB().
115 * \param m A memory block previosly declared with MEMB().
120 * Allocate a memory block from a block of memory declared with MEMB().
122 * \param m A memory block previosly declared with MEMB().
127 * Deallocate a memory block from a memory block previously declared
130 * \param m m A memory block previosly declared with MEMB().
132 * \param ptr A pointer to the memory block that is to be deallocated.
134 * \return The new reference count for the memory block (should be 0
136 * point to a legal memory block.