Skip to content

Commit

Permalink
Add MapperFlush method to get page
Browse files Browse the repository at this point in the history
  • Loading branch information
adavis628 authored and mkroening committed Dec 24, 2024
1 parent adabd05 commit f5a91f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/structures/paging/mapper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,12 @@ impl<S: PageSize> MapperFlush<S> {
/// Don't flush the TLB and silence the “must be used” warning.
#[inline]
pub fn ignore(self) {}

/// Returns the page to be flushed.
#[inline]
pub fn page(&self) -> Page<S> {
self.0
}
}

/// This type represents a change of a page table requiring a complete TLB flush
Expand Down

0 comments on commit f5a91f1

Please sign in to comment.