akmalloc
 All Data Structures Files Functions Variables Typedefs Macros Pages
Data Fields
ak_slab_root Struct Reference

Data Fields

ak_u32 sz
 
ak_u32 npages
 
ak_u32 navail
 
ak_u32 nempty
 
ak_u32 release
 
ak_u32 _unused
 
ak_slab partial_root
 
ak_slab full_root
 
ak_slab empty_root
 
ak_u32 RELEASE_RATE
 
ak_u32 MAX_PAGES_TO_FREE
 
ak_spinlock LOCKED
 

Detailed Description

Slab allocator

Definition at line 1340 of file malloc.c.

Field Documentation

ak_u32 ak_slab_root::_unused

for alignment

Definition at line 1347 of file malloc.c.

ak_slab ak_slab_root::empty_root

root of the empty slab list

Definition at line 1351 of file malloc.c.

ak_slab ak_slab_root::full_root

root of the full slab list

Definition at line 1350 of file malloc.c.

ak_spinlock ak_slab_root::LOCKED

lock for this allocator if locks are enabled

Definition at line 1355 of file malloc.c.

ak_u32 ak_slab_root::MAX_PAGES_TO_FREE

number of pages to free when release happens

Definition at line 1354 of file malloc.c.

ak_u32 ak_slab_root::navail

max number of available bits for the slab size sz

Definition at line 1344 of file malloc.c.

ak_u32 ak_slab_root::nempty

number of empty pages

Definition at line 1345 of file malloc.c.

ak_u32 ak_slab_root::npages

number of pages to obtain from the OS

Definition at line 1343 of file malloc.c.

ak_slab ak_slab_root::partial_root

root of the partially filled slab list

Definition at line 1349 of file malloc.c.

ak_u32 ak_slab_root::release

number of accumulated free empty pages since last release

Definition at line 1346 of file malloc.c.

ak_u32 ak_slab_root::RELEASE_RATE

number of pages moved to empty before a release

Definition at line 1353 of file malloc.c.

ak_u32 ak_slab_root::sz

the size of elements in this slab

Definition at line 1342 of file malloc.c.


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