Trait base::MemoryMappingUnix
source · 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§
sourcefn remove_range(&self, mem_offset: usize, count: usize) -> Result<(), Error>
fn remove_range(&self, mem_offset: usize, count: usize) -> Result<(), Error>
Remove the specified range from the mapping.
sourcefn async_prefetch(&self, mem_offset: usize, count: usize) -> Result<(), Error>
fn async_prefetch(&self, mem_offset: usize, count: usize) -> Result<(), Error>
Tell the kernel to readahead the range.
sourcefn drop_page_cache(&self, mem_offset: usize, count: usize) -> Result<(), Error>
fn drop_page_cache(&self, mem_offset: usize, count: usize) -> Result<(), Error>
Tell the kernel to drop the page cache.
sourcefn lock_on_fault(&self, mem_offset: usize, count: usize) -> Result<(), Error>
fn lock_on_fault(&self, mem_offset: usize, count: usize) -> Result<(), Error>
Lock the resident pages in the range not to be swapped out.