Internal structure used by membag to keep track of memory. More...

Data Fields | |
| size_t | block_size |
| Number of bytes per block in this bag. | |
| size_t | num_blocks |
| Total number of blocks. | |
| struct physmem_pool * | phys_pool |
| Pointer to physical pool to allocate mempool from. | |
| struct mem_pool | pool |
| Memory pool used for allocation. | |
| void * | start |
| Pointer to start of this bag. | |
| void * | end |
| Pointer to end of this bag. | |
Internal structure used by membag to keep track of memory.
Definition at line 49 of file membag.c.
| size_t membag::block_size |
Number of bytes per block in this bag.
Definition at line 50 of file membag.c.
Referenced by membag_alloc(), membag_get_largest_free_block_size(), membag_get_smallest_free_block_size(), membag_get_total(), and membag_pool_init_physmem().
| void* membag::end |
Pointer to end of this bag.
Definition at line 56 of file membag.c.
Referenced by membag_free(), and membag_pool_init_physmem().
| size_t membag::num_blocks |
Total number of blocks.
Definition at line 51 of file membag.c.
Referenced by membag_get_total(), and membag_pool_init_physmem().
| struct physmem_pool* membag::phys_pool |
Pointer to physical pool to allocate mempool from.
Definition at line 52 of file membag.c.
Referenced by membag_pool_init_physmem().
| struct mem_pool membag::pool |
Memory pool used for allocation.
Definition at line 53 of file membag.c.
Referenced by membag_alloc(), membag_free(), membag_get_largest_free_block_size(), membag_get_smallest_free_block_size(), and membag_pool_init_physmem().
| void* membag::start |
Pointer to start of this bag.
Definition at line 55 of file membag.c.
Referenced by membag_free(), and membag_pool_init_physmem().
1.6.3