ext/iodine/fio.c
/* intializes the block header for an available block of memory. */
intializes the block header for an available block of memory.
intializes the block header for an available block of memory .
static inline void block_init(block_s *blk) {
  blk->ref = 1;
  blk->pos = FIO_MEMORY_BLOCK_START_POS;
  ((block_node_s *)blk)->node.next = NULL;
  ((block_node_s *)blk)->node.prev = NULL;
  fio_atomic_add(&blk->parent->root_ref, 1);
}
static inline void block_init ( block_s * blk ) { blk -> ref = 1 ; blk -> pos = FIO_MEMORY_BLOCK_START_POS ; ( ( block_node_s * ) blk ) -> node . next = NULL ; ( ( block_node_s * ) blk ) -> node . prev = NULL ; fio_atomic_add ( & blk -> parent -> root_ref , 1 ) ; }
intializes the block header for an available block of memory.
intializes the block header for an available block of memory .
/* initialization shouldn't effect `parent` or `root_ref`*/ /* zero out linked list memory (everything else is already zero) */ /* bump parent reference count */