Block. More...
#include "tredmill/list.h"
Go to the source code of this file.
Data Structures | |
struct | tm_block |
A block allocated from the operating system. More... | |
Defines | |
#define | tm_block_unused(b) ((b)->n[tm_WHITE] == b->n[tm_TOTAL]) |
True if the tm_block has no used nodes; i.e. | |
#define | tm_block_type(b) ((b)->type) |
#define | tm_block_node_begin(b) ((void*) (b)->begin) |
The begining address of any tm_nodes parcelled from a tm_block. | |
#define | tm_block_node_end(b) ((void*) (b)->end) |
The end address of any tm_nodes parcelled from a tm_block. | |
#define | tm_block_node_next_parcel(b) ((void*) (b)->next_parcel) |
The address of the next tm_node to be parcelled from a tm_block. | |
#define | tm_block_node_size(b) ((b)->type->size + tm_node_HDR_SIZE) |
The total size of a tm_node with a useable size based on the tm_block's tm_type size. | |
#define | tm_block_node_next(b, n) ((void*) (((char*) (n)) + tm_block_node_size(b))) |
The adddress of the next tm_node after n, parcelled from tm_block. | |
#define | _tm_block_validate(b) ((void) 0) |
Block.
Definition in file block.h.