Skip to content

Slab

OO_MASK = 1 << OO_SHIFT - 1 module-attribute

OO_SHIFT = 16 module-attribute

CpuCache

active_slab property

address property

cpu = cpu instance-attribute

freelist property

partial_slabs 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 property

node = node instance-attribute

partial_slabs property

slab_cache = slab_cache instance-attribute

__init__(node_cache, slab_cache, node)

Slab

cpu_cache = cpu_cache instance-attribute

free_objects property

freelist property

freelists property

frozen property

inuse property

is_partial = is_partial instance-attribute

object_count property

objects property

pobjects property

slab_address property

slab_cache = slab_cache instance-attribute

slabs property

virt_address property

__init__(slab, cpu_cache, slab_cache, is_partial=False)

SlabCache

__oo_x property

address property

align property

cpu_cache property

returns cpu cache associated to current thread

cpu_caches property

returns cpu caches for all cpus

cpu_partial property

flags property

inuse property

name property

node_caches property

returns node caches for all NUMA nodes

object_size property

offset property

oo_objects property

oo_order property

random property

size 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()