pub struct LinuxVmAreaStruct<'a, Driver>{ /* private fields */ }
Expand description
A Linux VM area struct.
A vm_area_struct
is a structure that represents a memory region (Virtual
Memory Area, or VMA) in a process’s address space.
§Implementation Details
Corresponds to vm_area_struct
.
Implementations§
Trait Implementations§
Source§impl<Driver> Debug for LinuxVmAreaStruct<'_, Driver>
impl<Driver> Debug for LinuxVmAreaStruct<'_, Driver>
Source§impl<'a, Driver> VmiOsRegion<'a, Driver> for LinuxVmAreaStruct<'a, Driver>
impl<'a, Driver> VmiOsRegion<'a, Driver> for LinuxVmAreaStruct<'a, Driver>
Source§fn start(&self) -> Result<Va, VmiError>
fn start(&self) -> Result<Va, VmiError>
Returns the starting virtual address of the memory region.
§Implementation Details
Corresponds to vm_area_struct.vm_start
.
Source§fn end(&self) -> Result<Va, VmiError>
fn end(&self) -> Result<Va, VmiError>
Returns the ending virtual address of the memory region.
§Implementation Details
Corresponds to vm_area_struct.vm_end
.
Source§fn protection(&self) -> Result<MemoryAccess, VmiError>
fn protection(&self) -> Result<MemoryAccess, VmiError>
Returns the memory protection of the memory region.
§Implementation Details
Calculated from vm_area_struct.vm_flags
field.
Source§impl<Driver> VmiVa for LinuxVmAreaStruct<'_, Driver>
impl<Driver> VmiVa for LinuxVmAreaStruct<'_, Driver>
Auto Trait Implementations§
impl<'a, Driver> !Freeze for LinuxVmAreaStruct<'a, Driver>
impl<'a, Driver> !RefUnwindSafe for LinuxVmAreaStruct<'a, Driver>
impl<'a, Driver> !Send for LinuxVmAreaStruct<'a, Driver>
impl<'a, Driver> !Sync for LinuxVmAreaStruct<'a, Driver>
impl<'a, Driver> Unpin for LinuxVmAreaStruct<'a, Driver>
impl<'a, Driver> !UnwindSafe for LinuxVmAreaStruct<'a, Driver>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more