pub struct LinuxVmAreaStruct<'a, Driver>where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<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§
Source§impl<'a, Driver> LinuxVmAreaStruct<'a, Driver>where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<Driver>,
impl<'a, Driver> LinuxVmAreaStruct<'a, Driver>where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<Driver>,
Trait Implementations§
Source§impl<Driver> Debug for LinuxVmAreaStruct<'_, Driver>where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<Driver>,
impl<Driver> Debug for LinuxVmAreaStruct<'_, Driver>where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<Driver>,
Source§impl<'a, Driver> VmiOsRegion<'a, Driver> for LinuxVmAreaStruct<'a, Driver>where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<Driver>,
impl<'a, Driver> VmiOsRegion<'a, Driver> for LinuxVmAreaStruct<'a, Driver>where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<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>where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<Driver>,
impl<Driver> VmiVa for LinuxVmAreaStruct<'_, Driver>where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<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> !UnwindSafe for LinuxVmAreaStruct<'a, Driver>
impl<'a, Driver> Unpin for LinuxVmAreaStruct<'a, Driver>
impl<'a, Driver> UnsafeUnpin for LinuxVmAreaStruct<'a, Driver>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.