block.h File Reference

Block. More...

#include "tredmill/list.h"
Include dependency graph for block.h:
This graph shows which files directly or indirectly include this file:

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)

Detailed Description

Block.

Id
internal.h,v 1.17 2009-08-01 10:47:31 stephens Exp

Definition in file block.h.


Generated on Mon Jan 25 06:33:12 2010 for TM(tredmill) by  doxygen 1.6.1