pub struct MemoryMap {
pub address: (u64, u64),
pub perms: MMPermissions,
pub offset: u64,
pub dev: (i32, i32),
pub inode: u64,
pub pathname: MMapPath,
pub extension: MMapExtension,
}
Expand description
Represents an entry in a /proc/<pid>/maps
or /proc/<pid>/smaps
file.
Fields§
§address: (u64, u64)
The address space in the process that the mapping occupies.
perms: MMPermissions
§offset: u64
The offset into the file/whatever
dev: (i32, i32)
The device (major, minor)
inode: u64
The inode on that device
0 indicates that no inode is associated with the memory region, as would be the case with BSS (uninitialized data).
pathname: MMapPath
§extension: MMapExtension
Memory mapping extension information, populated when parsing /proc/<pid>/smaps
.
The members will be Default::default()
(empty/none) when the information isn’t available.
Trait Implementations§
source§impl<'de> Deserialize<'de> for MemoryMap
impl<'de> Deserialize<'de> for MemoryMap
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemoryMap
impl StructuralPartialEq for MemoryMap
Auto Trait Implementations§
impl Freeze for MemoryMap
impl RefUnwindSafe for MemoryMap
impl Send for MemoryMap
impl Sync for MemoryMap
impl Unpin for MemoryMap
impl UnwindSafe for MemoryMap
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)