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 committed Dec 23, 2024
1 parent 00f897c commit 50dff1f
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 @@ -409,6 +409,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 50dff1f

Please sign in to comment.