Skip to content

Slab

OO_MASK = 1 << OO_SHIFT - 1 module-attribute

OO_SHIFT = 16 module-attribute

CpuCache

active_slab: Slab | None property

address: int property

cpu = cpu instance-attribute

freelist: Freelist property

partial_slabs: List[Slab] property

slab_cache = slab_cache instance-attribute

__init__(cpu_cache, slab_cache, cpu)

Freelist

offset = offset instance-attribute

random = random instance-attribute

start_addr = start_addr instance-attribute

__init__(start_addr, offset, random=0)

__int__()

__iter__()

__len__()

find_next(addr)

NodeCache

address: int property

node = node instance-attribute

partial_slabs: List[Slab] property

slab_cache = slab_cache instance-attribute

__init__(node_cache, slab_cache, node)

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.

get_cache(target_name)

get_flags_list(flags)

oo_objects(x)

oo_order(x)

slab_struct_type()