Struct x86_64::structures::paging::mapper::MapperFlush
source · pub struct MapperFlush<S: PageSize>(/* private fields */);
Expand description
This type represents a page whose mapping has changed in the page table.
The old mapping might be still cached in the translation lookaside buffer (TLB), so it needs to be flushed from the TLB before it’s accessed. This type is returned from a function that changed the mapping of a page to ensure that the TLB flush is not forgotten.
Implementations§
source§impl<S: PageSize> MapperFlush<S>
impl<S: PageSize> MapperFlush<S>
sourcepub fn new(page: Page<S>) -> Self
pub fn new(page: Page<S>) -> Self
Create a new flush promise
Note that this method is intended for implementing the Mapper
trait and no other uses
are expected.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for MapperFlush<S>
impl<S> RefUnwindSafe for MapperFlush<S>where
S: RefUnwindSafe,
impl<S> Send for MapperFlush<S>where
S: Send,
impl<S> Sync for MapperFlush<S>where
S: Sync,
impl<S> Unpin for MapperFlush<S>where
S: Unpin,
impl<S> UnwindSafe for MapperFlush<S>where
S: UnwindSafe,
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