Skip to main content

Module buddy

Module buddy 

Source

Macrosยง

buddy_dbg ๐Ÿ”’

Structsยง

BuddyAllocator
CompactionCandidate ๐Ÿ”’
CompactionStats
Snapshot of the last fragmentation-driven compaction assist attempt.
LocalFrameCache ๐Ÿ”’
OnDemandGlobalLock ๐Ÿ”’
ZoneStats
Snapshot statistics for a single memory zone.

Enumsยง

ZonePressure
Derived pressure state for a zone snapshot.

Constantsยง

COMPACTION_FRAGMENTATION_THRESHOLD ๐Ÿ”’
COMPACTION_SNAPSHOT_NONE ๐Ÿ”’
DMA_MAX ๐Ÿ”’
LOCAL_CACHED_ZONE_MIGRATETYPE_SLOTS ๐Ÿ”’
LOCAL_CACHE_CAPACITY ๐Ÿ”’
LOCAL_CACHE_FLUSH_BATCH ๐Ÿ”’
LOCAL_CACHE_REFILL_FRAMES ๐Ÿ”’
LOCAL_CACHE_REFILL_ORDER ๐Ÿ”’
LOCAL_CACHE_SLOTS ๐Ÿ”’
MOVABLE_ZONE_ORDER ๐Ÿ”’
NORMAL_MAX ๐Ÿ”’
PAGE_SIZE ๐Ÿ”’
UNMOVABLE_ZONE_ORDER ๐Ÿ”’

Staticsยง

ALLOC_IN_PROGRESS ๐Ÿ”’
Per-CPU flag to detect recursive allocations (deadlocks from logs/interrupts)
BUDDY_ALLOCATOR ๐Ÿ”’
BUDDY_ALLOC_FAIL_COUNTS ๐Ÿ”’
Per-order allocation failure counters.
COMPACTION_ATTEMPTS ๐Ÿ”’
COMPACTION_LAST_AVAILABLE_PAGES ๐Ÿ”’
COMPACTION_LAST_CACHED_PAGES ๐Ÿ”’
COMPACTION_LAST_DRAINED_PAGES ๐Ÿ”’
COMPACTION_LAST_FRAGMENTATION ๐Ÿ”’
COMPACTION_LAST_MATCHING_PAGEBLOCKS ๐Ÿ”’
COMPACTION_LAST_MIGRATETYPE ๐Ÿ”’
COMPACTION_LAST_ORDER ๐Ÿ”’
COMPACTION_LAST_PAGEBLOCK_COUNT ๐Ÿ”’
COMPACTION_LAST_PRESSURE ๐Ÿ”’
COMPACTION_LAST_REQUESTED_PAGES ๐Ÿ”’
COMPACTION_LAST_USABLE_PAGES ๐Ÿ”’
COMPACTION_LAST_ZONE ๐Ÿ”’
COMPACTION_SUCCESSES ๐Ÿ”’
LOCAL_CACHED_FRAMES ๐Ÿ”’
LOCAL_CACHED_ZONE_FRAMES ๐Ÿ”’
LOCAL_CACHED_ZONE_MIGRATETYPE_FRAMES ๐Ÿ”’
LOCAL_FRAME_CACHES ๐Ÿ”’
Per-CPU frame caches protected by a PreemptDisabled guardian.
POISON_QUARANTINE_PAGES ๐Ÿ”’
Pages permanently withheld from the buddy free lists due to [meta_guard::POISONED].

Functionsยง

alloc
Allocate frames with per-CPU caching on order-0 requests.
alloc_migratetype
Allocate frames with an explicit migratetype preference.
alloc_order0_cached ๐Ÿ”’
buddy_alloc_fail_counts_snapshot
Returns the buddy allocation failure counts by order.
compaction_stats_snapshot
Snapshot compaction-assist telemetry without locking the allocator.
debug_buddy_lock_addr
Returns the global buddy lock address for deadlock tracing.
drain_local_caches_for_zone ๐Ÿ”’
drain_local_caches_to_global ๐Ÿ”’
free
Free frames with per-CPU caching on order-0 requests.
free_order0_cached ๐Ÿ”’
get_allocator
Returns allocator.
init_buddy_allocator
Initializes buddy allocator.
is_cacheable_phys_for ๐Ÿ”’
local_cache_slot ๐Ÿ”’
local_cached_dec_phys ๐Ÿ”’
local_cached_inc_phys ๐Ÿ”’
local_cached_zone_migratetype_count ๐Ÿ”’
local_cached_zone_migratetype_slot ๐Ÿ”’
poison_quarantine_pages_snapshot
Snapshot of pages quarantined (not recycled) because frame metadata reported poison.
record_buddy_alloc_fail ๐Ÿ”’
Records a buddy allocation failure for the given order.
record_compaction_attempt ๐Ÿ”’
refill_local_cache ๐Ÿ”’
snapshot_migratetype ๐Ÿ”’
snapshot_zone_type ๐Ÿ”’
steal_from_other_caches ๐Ÿ”’
zone_index_for_phys ๐Ÿ”’

Type Aliasesยง

GlobalGuard ๐Ÿ”’