Skip to main content

k_obj_core_evict_range

Function k_obj_core_evict_range 

Source
pub unsafe extern "C" fn k_obj_core_evict_range(
    addr: *const c_void,
    len: usize,
)
Expand description

@brief Unregister every kernel object located in a memory range

Intended for memory allocators: removes the registry entries of all objects whose object core lies in [@a addr, @a addr + @a len) as the memory is released. This function takes no lock and may be called while holding the allocator’s lock.

@param addr Start of the released memory @param len Size of the released memory in bytes