pub struct VmPage {
index: usize,
vm: usize,
pool: Mutex<usize>,
addr: u64,
order: Mutex<usize>,
flags: Mutex<PageFlags>,
extended_flags: Mutex<PageExtFlags>,
access: Mutex<PageAccess>,
segment: usize,
unk1: u8,
}Expand description
Implementation of vm_page structure.
Fields§
§index: usize§vm: usize§pool: Mutex<usize>§addr: u64§order: Mutex<usize>§flags: Mutex<PageFlags>§extended_flags: Mutex<PageExtFlags>§access: Mutex<PageAccess>§segment: usize§unk1: u8Implementations§
Source§impl VmPage
impl VmPage
pub const FREE_ORDER: usize = 13usize
pub fn new( index: usize, vm: usize, pool: usize, addr: u64, segment: usize, ) -> Self
pub fn index(&self) -> usize
pub fn vm(&self) -> usize
Sourcepub fn pool(&self) -> &Mutex<usize>
pub fn pool(&self) -> &Mutex<usize>
This must be locked after Self::order() and the lock must be held while putting this page to free queues.
pub fn addr(&self) -> u64
Sourcepub fn order(&self) -> &Mutex<usize>
pub fn order(&self) -> &Mutex<usize>
This must be locked after free queues and the lock must be held while putting this page to free queues.
pub fn flags(&self) -> &Mutex<PageFlags>
pub fn extended_flags(&self) -> &Mutex<PageExtFlags>
pub fn access(&self) -> &Mutex<PageAccess>
pub fn segment(&self) -> usize
pub fn unk1(&self) -> u8
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for VmPage
impl !RefUnwindSafe for VmPage
impl Send for VmPage
impl Sync for VmPage
impl Unpin for VmPage
impl UnwindSafe for VmPage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.