pub(super) struct MapsEntry {
address: (usize, usize),
perms: [char; 4],
offset: u64,
dev: (usize, usize),
inode: usize,
pathname: OsString,
}
Fields§
§address: (usize, usize)
start (inclusive) and limit (exclusive) of address range.
perms: [char; 4]
The perms field are the permissions for the entry
r = read w = write x = execute s = shared p = private (copy on write)
offset: u64
Offset into the file (or “whatever”).
dev: (usize, usize)
device (major, minor)
inode: usize
inode on the device. 0 indicates that no inode is associated with the memory region (e.g. uninitalized data aka BSS).
pathname: OsString
Usually the file backing the mapping.
Note: The man page for proc includes a note about “coordination” by using readelf to see the Offset field in ELF program headers. pnkfelix is not yet sure if that is intended to be a comment on pathname, or what form/purpose such coordination is meant to have.
There are also some pseudo-paths:
“[stack]”: The initial process’s (aka main thread’s) stack.
“[stack:
The pathname can be blank, which means it is an anonymous mapping obtained via mmap.
Newlines in pathname are replaced with an octal escape sequence.
The pathname may have “(deleted)” appended onto it if the file-backed path has been deleted.
Note that modifications like the latter two indicated above imply that in general the pathname may be ambiguous. (I.e. you cannot tell if the denoted filename actually ended with the text “(deleted)”, or if that was added by the maps rendering.
Implementations§
Trait Implementations§
impl StructuralPartialEq for MapsEntry
Auto Trait Implementations§
impl Freeze for MapsEntry
impl RefUnwindSafe for MapsEntry
impl Send for MapsEntry
impl Sync for MapsEntry
impl Unpin for MapsEntry
impl UnwindSafe for MapsEntry
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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
sized_type_properties
)[Self]
. Read more