Slab Allocation¶
Functions and structures¶
Parameters
const struct page *pageA page which may or may not belong to a slab.
Return
The slab which contains this page or NULL if the page does not belong to a slab. This includes pages returned from large kmalloc.
-
slab_page¶
slab_page (s)
The first
struct pageallocated for a slab
Parameters
sThe slab.
Description
A convenience wrapper for returning the first page allocated to this slab.
This is for the benefit of code not yet converted to struct slab.
-
enum slab_flags¶
How the slab flags bits are used.
Constants
SL_lockedIs locked with
slab_lock()SL_partialOn the per-node partial list
SL_pfmemallocWas allocated from PF_MEMALLOC reserves
Description
The slab flags share space with the page flags but some bits have different interpretations. The high bits are used for information like zone/node/section.