Skip to main content

is_live_allocation

Function is_live_allocation 

Source
pub fn is_live_allocation(ptr: *mut u8) -> Option<bool>
Expand description

Returns whether ptr is currently the base address of a live vmalloc allocation.

Returns None if the VMALLOC lock is contended. Intended for shell/debug validation, not for allocator hot paths.