#include <sys/types.h>#include <bool.h>#include <adt/list.h>Go to the source code of this file.
Data Structures | |
| struct | mem_area_t |
| struct | mem_block_t |
| struct | ph_alloc_size_t |
| struct | phase_t |
| struct | sp_action_prob_t |
| struct | sp_term_cond_t |
| struct | subphase_t |
Defines | |
| #define | AREA_GRANULARITY 16 |
| #define | AREA_SIZE (4 * PAGE_SIZE) |
| #define | MAX_ALLOC (16 * 1024 * 1024) |
| #define | RETURN_IF_ERROR |
Functions | |
| mem_block_t * | alloc_block (size_t) |
| void | check_block (mem_block_t *) |
| Check block. | |
| void | done_mem (void) |
| Cleanup all allocated memory blocks and mapped areas. | |
| void | fill_area (mem_area_t *) |
| Fill area. | |
| void | fill_block (mem_block_t *) |
| Fill block. | |
| void | free_block (mem_block_t *) |
| Free block. | |
| mem_block_t * | get_random_block (void) |
| Get random block. | |
| void | init_mem (void) |
| Initializes the memory accounting structures. | |
| mem_area_t * | map_area (size_t) |
| void | unmap_area (mem_area_t *) |
| Unmap area. | |
Variables | |
| bool | error_flag |
| size_t | mem_allocated |
| size_t | mem_blocks_count |
Definition in file common.h.
1.4.7