pub struct PageMapEntry(_);
Bits 57-60 (zero-based) should be set to zero and currently do not have any meaning.
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').
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).
Page is swapped.
Bit 62 (zero-based).
Page is present.
Bit 63 (zero-based).
Page 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).
Page Table Entry (PTE) is 'soft dirty'.
For more information, see the Linux documentation at Documentation/vm/soft-dirty.txt
.
Bit 55 (zero-based).
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
This method returns an Ordering
between self
and other
. Read more
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
Formats the value using the given formatter. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static