File tree 1 file changed +9
-3
lines changed
src/structures/paging/mapper
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -381,8 +381,11 @@ pub struct MapperFlush<S: PageSize>(Page<S>);
381
381
382
382
impl < S : PageSize > MapperFlush < S > {
383
383
/// Create a new flush promise
384
+ ///
385
+ /// Note that this method is intended for implementing the [`Mapper`] trait and no other uses
386
+ /// are expected.
384
387
#[ inline]
385
- fn new ( page : Page < S > ) -> Self {
388
+ pub fn new ( page : Page < S > ) -> Self {
386
389
MapperFlush ( page)
387
390
}
388
391
@@ -403,14 +406,17 @@ impl<S: PageSize> MapperFlush<S> {
403
406
/// The old mapping might be still cached in the translation lookaside buffer (TLB), so it needs
404
407
/// to be flushed from the TLB before it's accessed. This type is returned from a function that
405
408
/// made the change to ensure that the TLB flush is not forgotten.
406
- #[ derive( Debug ) ]
409
+ #[ derive( Debug , Default ) ]
407
410
#[ must_use = "Page Table changes must be flushed or ignored." ]
408
411
pub struct MapperFlushAll ( ( ) ) ;
409
412
410
413
impl MapperFlushAll {
411
414
/// Create a new flush promise
415
+ ///
416
+ /// Note that this method is intended for implementing the [`Mapper`] trait and no other uses
417
+ /// are expected.
412
418
#[ inline]
413
- fn new ( ) -> Self {
419
+ pub fn new ( ) -> Self {
414
420
MapperFlushAll ( ( ) )
415
421
}
416
422
You can’t perform that action at this time.
0 commit comments