[][src]Struct dpdk_unix::android_linux::page_table::PageMapEntry

pub struct 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]

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]

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_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]

impl PartialEq<PageMapEntry> for PageMapEntry[src]

impl Default for PageMapEntry[src]

impl Ord for PageMapEntry[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_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for PageMapEntry[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]