Skip to content

Commit a1ffaad

Browse files
authored
Merge pull request #525 from adavis628/master
Add `MapperFlush` method to get page
2 parents 00f897c + 50dff1f commit a1ffaad

File tree

1 file changed

+6
-0
lines changed
  • src/structures/paging/mapper

1 file changed

+6
-0
lines changed

src/structures/paging/mapper/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,12 @@ impl<S: PageSize> MapperFlush<S> {
409409
/// Don't flush the TLB and silence the “must be used” warning.
410410
#[inline]
411411
pub fn ignore(self) {}
412+
413+
/// Returns the page to be flushed.
414+
#[inline]
415+
pub fn page(&self) -> Page<S> {
416+
self.0
417+
}
412418
}
413419

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

0 commit comments

Comments
 (0)