Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
chain_allocator Struct Reference

Data Fields

struct linked_pagechain
 
unsigned int used_space
 
gfp_t gfp_mask
 
int safe_needed
 

Detailed Description

struct chain_allocator is used for allocating small objects out of a linked list of pages called 'the chain'.

The chain grows each time when there is no room for a new object in the current page. The allocated objects cannot be freed individually. It is only possible to free them all at once, by freeing the entire chain.

NOTE: The chain allocator may be inefficient if the allocated objects are not much smaller than PAGE_SIZE.

Definition at line 184 of file snapshot.c.

Field Documentation

Definition at line 185 of file snapshot.c.

gfp_t gfp_mask

Definition at line 189 of file snapshot.c.

int safe_needed

Definition at line 190 of file snapshot.c.

unsigned int used_space

Definition at line 186 of file snapshot.c.


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