Function memadvise::advise [] [src]

pub fn advise(
    address: *mut (),
    length: usize,
    advice: Advice
) -> Result<(), MemAdviseError>

This function gives the system advice about a certain block of memory.

Arguments

  • address - a raw pointer to a memory address that must be a multiple of the system's page size

  • length - size of memory block in bytes (must be nonzero)

  • advice - hint to pass to the operating system