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

Required Methods§

source

fn remove_range(&self, mem_offset: usize, count: usize) -> Result<()>

Remove the specified range from the mapping.

source

fn async_prefetch(&self, mem_offset: usize, count: usize) -> Result<()>

Tell the kernel to readahead the range.

source

fn drop_page_cache(&self, mem_offset: usize, count: usize) -> Result<()>

Tell the kernel to drop the page cache.

source

fn lock_on_fault(&self, mem_offset: usize, count: usize) -> Result<()>

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

source

fn unlock(&self, mem_offset: usize, count: usize) -> Result<()>

Unlock the range of pages.

source

fn lock_all(&self) -> Result<()>

Disable host swap for this mapping.

Implementors§