Skip to main content

try_page_reclaim

Function try_page_reclaim 

Source
pub fn try_page_reclaim(num_pages: usize) -> usize
Expand description

Try to reclaim physical pages by invoking the registered callback. Returns the number of pages actually freed.

The registration lock and allocator backend lock are released before the callback runs. A typed lease rejects recursive or concurrent reclaim; this is the allocator equivalent of Linux’s bounded direct-reclaim context.