pub trait MemoryMappingUnix {
    fn remove_range(&self, mem_offset: usize, count: usize) -> Result<(), Error>;
    fn async_prefetch(&self, mem_offset: usize, count: usize) -> Result<(), Error>;
    fn drop_page_cache(
        &self,
        mem_offset: usize,
        count: usize
    ) -> Result<(), Error>; fn lock_on_fault(&self, mem_offset: usize, count: usize) -> Result<(), Error>; fn unlock(&self, mem_offset: usize, count: usize) -> Result<(), Error>; fn lock_all(&self) -> Result<(), Error>; }

Required Methods§

Remove the specified range from the mapping.

Tell the kernel to readahead the range.

Tell the kernel to drop the page cache.

Lock the resident pages in the range not to be swapped out.

Unlock the range of pages.

Disable host swap for this mapping.

Implementors§