pub struct PageMap { /* private fields */ }
Expand description
Parses page table entries accessing /proc/<pid>/pagemap
.
Implementations§
source§impl 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
.