Struct dpdk_unix::android_linux::page_table::PageMapEntry [−][src]
pub struct PageMapEntry(_);
Bits 57-60 (zero-based) should be set to zero and currently do not have any meaning.
Methods
impl PageMapEntry[src]
impl PageMapEntrypub fn read_our_pagemap_file<HVA: HasVirtualAddress>(
have_virtual_addresses: impl Iterator<Item = HVA>,
page_map_entry_user: impl FnMut(HVA, VirtualAddress, PageMapEntry)
) -> Result<()>[src]
pub fn read_our_pagemap_file<HVA: HasVirtualAddress>(
have_virtual_addresses: impl Iterator<Item = HVA>,
page_map_entry_user: impl FnMut(HVA, VirtualAddress, PageMapEntry)
) -> Result<()>Read the current process' pagemap file.
pub fn read_pagemap_file<HVA: HasVirtualAddress>(
have_virtual_addresses: impl Iterator<Item = HVA>,
page_map_entry_user: impl FnMut(HVA, VirtualAddress, PageMapEntry),
page_map_file_path: impl AsRef<Path>
) -> Result<()>[src]
pub fn read_pagemap_file<HVA: HasVirtualAddress>(
have_virtual_addresses: impl Iterator<Item = HVA>,
page_map_entry_user: impl FnMut(HVA, VirtualAddress, PageMapEntry),
page_map_file_path: impl AsRef<Path>
) -> Result<()>Read the a process' pagemap file, typically at /proc/PID/pagemap, where UPID is the process' identifier ('pid').
pub fn physical_page_frame_number(self) -> PhysicalPageFrameNumber[src]
pub fn physical_page_frame_number(self) -> PhysicalPageFrameNumberPhysical Page Frame Number (PFN).
May be zero if an user lacks the capability CAP_SYS_ADMIN.
This data is not valid if the page can be swapped out; to prevent that, lock the page using mlock().
(If swapped, the bottom 5 bits are the swap type and the bits 5 (zero-based, ie this is the 6th bit) to 54 inclusive are the swap offset; we panic if this is the case in debug).
The top 9 bits are unset (ie always zero).
pub fn is_swapped(self) -> bool[src]
pub fn is_swapped(self) -> boolPage is swapped.
Bit 62 (zero-based).
pub fn is_present(self) -> bool[src]
pub fn is_present(self) -> boolPage is present.
Bit 63 (zero-based).
pub fn is_exclusively_mapped(self) -> bool[src]
pub fn is_exclusively_mapped(self) -> boolPage is exclusively mapped.
Introduced in Linux 4.2.
Bit 56 (zero-based).
Page is exclusively mapped.
Introduced in Linux 3.5.
Bit 61 (zero-based).
pub fn page_table_entry_is_soft_dirty(self) -> bool[src]
pub fn page_table_entry_is_soft_dirty(self) -> boolPage Table Entry (PTE) is 'soft dirty'.
For more information, see the Linux documentation at Documentation/vm/soft-dirty.txt.
Bit 55 (zero-based).
Trait Implementations
impl Default for PageMapEntry[src]
impl Default for PageMapEntryfn default() -> PageMapEntry[src]
fn default() -> PageMapEntryReturns the "default value" for a type. Read more
impl Debug for PageMapEntry[src]
impl Debug for PageMapEntryfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for PageMapEntry[src]
impl Copy for PageMapEntryimpl Clone for PageMapEntry[src]
impl Clone for PageMapEntryfn clone(&self) -> PageMapEntry[src]
fn clone(&self) -> PageMapEntryReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Ord for PageMapEntry[src]
impl Ord for PageMapEntryfn cmp(&self, other: &PageMapEntry) -> Ordering[src]
fn cmp(&self, other: &PageMapEntry) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for PageMapEntry[src]
impl PartialOrd for PageMapEntryfn partial_cmp(&self, other: &PageMapEntry) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &PageMapEntry) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &PageMapEntry) -> bool[src]
fn lt(&self, other: &PageMapEntry) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &PageMapEntry) -> bool[src]
fn le(&self, other: &PageMapEntry) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &PageMapEntry) -> bool[src]
fn gt(&self, other: &PageMapEntry) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &PageMapEntry) -> bool[src]
fn ge(&self, other: &PageMapEntry) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Eq for PageMapEntry[src]
impl Eq for PageMapEntryimpl PartialEq for PageMapEntry[src]
impl PartialEq for PageMapEntryfn eq(&self, other: &PageMapEntry) -> bool[src]
fn eq(&self, other: &PageMapEntry) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &PageMapEntry) -> bool[src]
fn ne(&self, other: &PageMapEntry) -> boolThis method tests for !=.
impl Hash for PageMapEntry[src]
impl Hash for PageMapEntryAuto Trait Implementations
impl Send for PageMapEntry
impl Send for PageMapEntryimpl Sync for PageMapEntry
impl Sync for PageMapEntry