Slab
OO_MASK = 1 << OO_SHIFT - 1
module-attribute
¶
OO_SHIFT = 16
module-attribute
¶
CpuCache
¶
Freelist
¶
NodeCache
¶
Slab
¶
cpu_cache = cpu_cache
instance-attribute
¶
free_objects: Set[int]
property
¶
freelist: Freelist
property
¶
freelists: List[Freelist]
property
¶
frozen: int
property
¶
inuse: int
property
¶
is_partial = is_partial
instance-attribute
¶
object_count: int
property
¶
objects: Generator[int, None, None]
property
¶
pobjects: int
property
¶
slab_address: int
property
¶
slab_cache = slab_cache
instance-attribute
¶
slabs: int
property
¶
virt_address: int
property
¶
__init__(slab, cpu_cache, slab_cache, is_partial=False)
¶
SlabCache
¶
__oo_x: int
property
¶
address: int
property
¶
align: int
property
¶
cpu_cache: CpuCache
property
¶
returns cpu cache associated to current thread
cpu_caches: Generator[CpuCache, None, None]
property
¶
returns cpu caches for all cpus
cpu_partial: int
property
¶
flags: List[str]
property
¶
inuse: int
property
¶
name: str
property
¶
node_caches: Generator[NodeCache, None, None]
property
¶
returns node caches for all NUMA nodes
object_size: int
property
¶
offset: int
property
¶
oo_objects
property
¶
oo_order
property
¶
random: int
property
¶
size: int
property
¶
__init__(slab_cache)
¶
caches()
¶
find_containing_slab_cache(addr)
¶
Find the slab cache associated with the provided address.