common.h File Reference

#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_talloc_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_tget_random_block (void)
 Get random block.
void init_mem (void)
 Initializes the memory accounting structures.
mem_area_tmap_area (size_t)
void unmap_area (mem_area_t *)
 Unmap area.

Variables

bool error_flag
size_t mem_allocated
size_t mem_blocks_count


Detailed Description

Definition in file common.h.


Generated on Thu Jun 2 07:45:51 2011 for HelenOS/USB by  doxygen 1.4.7