pub struct PageMap { /* private fields */ }
Expand description
Parses page table entries accessing /proc/<pid>/pagemap
.
Implementations
sourceimpl PageMap
impl PageMap
sourcepub fn get_info(&mut self, page_index: usize) -> ProcResult<PageInfo>
pub fn get_info(&mut self, page_index: usize) -> ProcResult<PageInfo>
Retrieves information in the page table entry for the page at index page_index
.
sourcepub fn get_range_info(
&mut self,
page_range: impl RangeBounds<usize>
) -> ProcResult<Vec<PageInfo>>
pub fn get_range_info(
&mut self,
page_range: impl RangeBounds<usize>
) -> ProcResult<Vec<PageInfo>>
Retrieves information in the page table entry for the pages with index in range page_range
.
Auto Trait Implementations
impl RefUnwindSafe for PageMap
impl Send for PageMap
impl Sync for PageMap
impl Unpin for PageMap
impl UnwindSafe for PageMap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more