pub struct Area { /* private fields */ }
Expand description
A wrapper for the kernel’s struct vm_area_struct
.
It represents an area of virtual memory.
Invariants
vma
is always non-null and valid.
Implementations
sourceimpl Area
impl Area
sourcepub fn flags(&self) -> usize
pub fn flags(&self) -> usize
Returns the flags associated with the virtual memory area.
The possible flags are a combination of the constants in flags
.
sourcepub fn set_flags(&mut self, flags: usize)
pub fn set_flags(&mut self, flags: usize)
Sets the flags associated with the virtual memory area.
The possible flags are a combination of the constants in flags
.
sourcepub fn insert_page(&mut self, address: usize, page: &Pages<0>) -> Result
pub fn insert_page(&mut self, address: usize, page: &Pages<0>) -> Result
Maps a single page at the given address within the virtual memory area.
Auto Trait Implementations
impl RefUnwindSafe for Area
impl !Send for Area
impl !Sync for Area
impl Unpin for Area
impl UnwindSafe for Area
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more