Skip to main content

willneed

Function willneed 

Source
pub(crate) fn willneed(ptr: *mut u8, len: usize)
Available on Unix and crate feature pool only.
Expand description

Hints the kernel to fault the page-aligned subrange of [ptr, ptr + len) back in ahead of need: asynchronous swap-in, the swap-backed extent store’s readahead mechanism. Contents are preserved. No-op outside Linux.