D-Bus 1.14.10
Data Fields

DBusMemBlock object represents a single malloc()-returned block that gets chunked up into objects in the memory pool. More...

Data Fields

DBusMemBlocknext
 next block in the list, which is already used up; only saved so we can free all the blocks when we free the mem pool. More...
 
long used_so_far
 bytes of this block already allocated as elements. More...
 
unsigned char elements [ELEMENT_PADDING]
 the block data, actually allocated to required size More...
 

Detailed Description

DBusMemBlock object represents a single malloc()-returned block that gets chunked up into objects in the memory pool.

Definition at line 84 of file dbus-mempool.c.

Field Documentation

◆ elements

unsigned char DBusMemBlock::elements[ELEMENT_PADDING]

the block data, actually allocated to required size

Definition at line 94 of file dbus-mempool.c.

Referenced by _dbus_mem_pool_alloc(), and _dbus_mem_pool_dealloc().

◆ next

DBusMemBlock* DBusMemBlock::next

next block in the list, which is already used up; only saved so we can free all the blocks when we free the mem pool.

Definition at line 86 of file dbus-mempool.c.

Referenced by _dbus_mem_pool_alloc(), _dbus_mem_pool_dealloc(), and _dbus_mem_pool_free().

◆ used_so_far

long DBusMemBlock::used_so_far

bytes of this block already allocated as elements.

Definition at line 92 of file dbus-mempool.c.

Referenced by _dbus_mem_pool_alloc().


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