[−][src]Struct dpdk_unix::android_linux::page_table::PageMapEntry
Bits 57-60 (zero-based) should be set to zero and currently do not have any meaning.
Methods
impl PageMapEntry
[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<()>
[src]
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]
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]
Physical 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]
Page is swapped.
Bit 62 (zero-based).
pub fn is_present(self) -> bool
[src]
Page is present.
Bit 63 (zero-based).
pub fn is_exclusively_mapped(self) -> bool
[src]
Page is exclusively mapped.
Introduced in Linux 4.2.
Bit 56 (zero-based).
pub fn is_file_page_or_shared_anonymous(self) -> bool
[src]
Page is exclusively mapped.
Introduced in Linux 3.5.
Bit 61 (zero-based).
pub fn page_table_entry_is_soft_dirty(self) -> bool
[src]
Page 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 Eq for PageMapEntry
[src]
impl Clone for PageMapEntry
[src]
fn clone(&self) -> PageMapEntry
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for PageMapEntry
[src]
impl PartialOrd<PageMapEntry> for PageMapEntry
[src]
fn partial_cmp(&self, other: &PageMapEntry) -> Option<Ordering>
[src]
fn lt(&self, other: &PageMapEntry) -> bool
[src]
fn le(&self, other: &PageMapEntry) -> bool
[src]
fn gt(&self, other: &PageMapEntry) -> bool
[src]
fn ge(&self, other: &PageMapEntry) -> bool
[src]
impl PartialEq<PageMapEntry> for PageMapEntry
[src]
fn eq(&self, other: &PageMapEntry) -> bool
[src]
fn ne(&self, other: &PageMapEntry) -> bool
[src]
impl Default for PageMapEntry
[src]
fn default() -> PageMapEntry
[src]
impl Ord for PageMapEntry
[src]
fn cmp(&self, other: &PageMapEntry) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for PageMapEntry
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for PageMapEntry
[src]
Auto Trait Implementations
impl Send for PageMapEntry
impl Sync for PageMapEntry
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,