TNeoKernel  v1.03
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Fields
TN_FMem Struct Reference

Detailed Description

Fixed memory blocks pool.

Definition at line 78 of file tn_fmem.h.

Data Fields

struct TN_ListItem wait_queue
 list of tasks waiting for free memory block
 
unsigned int block_size
 block size (in bytes); note that it should be a multiple of sizeof(TN_UWord}), use a macro TN_MAKE_ALIG_SIZE() for that. More...
 
int blocks_cnt
 capacity (total blocks count)
 
int free_blocks_cnt
 free blocks count
 
void * start_addr
 memory pool start address; note that it should be a multiple of sizeof(TN_UWord). More...
 
void * free_list
 ptr to free block list
 
enum TN_ObjId id_fmp
 id for object validity verification
 

Field Documentation

unsigned int TN_FMem::block_size

block size (in bytes); note that it should be a multiple of sizeof(TN_UWord}), use a macro TN_MAKE_ALIG_SIZE() for that.

See also
TN_MAKE_ALIG_SIZE()

Definition at line 88 of file tn_fmem.h.

void* TN_FMem::start_addr

memory pool start address; note that it should be a multiple of sizeof(TN_UWord).

Definition at line 98 of file tn_fmem.h.


The documentation for this struct was generated from the following file: