pub(super) struct MapsEntry {
address: (usize, usize),
offset: u64,
pathname: OsString,
}Fields§
§address: (usize, usize)start (inclusive) and limit (exclusive) of address range.
offset: u64Offset into the file (or “whatever”).
pathname: OsStringUsually 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§
Source§impl Eq for MapsEntry
impl Eq for MapsEntry
Source§#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
derive_eq_internals)1.0.0 (const: unstable) · Source§#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
implementation detail of #[derive(Eq)]
impl StructuralPartialEq for MapsEntry
Auto Trait Implementations§
impl Forget for MapsEntry
impl Freeze for MapsEntry
impl Move for MapsEntry
impl RefUnwindSafe for MapsEntry
impl Send for MapsEntrywhere
RawVecInner: Send,
impl Sync for MapsEntrywhere
RawVecInner: Sync,
impl Unpin for MapsEntry
impl UnsafeUnpin for MapsEntry
impl UnwindSafe for MapsEntrywhere
RawVecInner: UnwindSafe,
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> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
core_io_internals)[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
sized_type_properties)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