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§
sourcefn remove_range(&self, mem_offset: usize, count: usize) -> Result<()>
fn remove_range(&self, mem_offset: usize, count: usize) -> Result<()>
Remove the specified range from the mapping.
sourcefn async_prefetch(&self, mem_offset: usize, count: usize) -> Result<()>
fn async_prefetch(&self, mem_offset: usize, count: usize) -> Result<()>
Tell the kernel to readahead the range.
sourcefn drop_page_cache(&self, mem_offset: usize, count: usize) -> Result<()>
fn drop_page_cache(&self, mem_offset: usize, count: usize) -> Result<()>
Tell the kernel to drop the page cache.