File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/structures/paging/mapper Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -285,15 +285,16 @@ pub trait Mapper<S: PageSize> {
285
285
fn unmap ( & mut self , page : Page < S > ) -> Result < ( PhysFrame < S > , MapperFlush < S > ) , UnmapError > ;
286
286
287
287
/// Updates the flags of an existing mapping.
288
- ///
288
+ ///
289
+ /// To read the current flags of a mapped page, use the [`Translate::translate`] method.
290
+ ///
289
291
/// ## Safety
290
292
///
291
293
/// This method is unsafe because changing the flags of a mapping
292
294
/// might result in undefined behavior. For example, setting the
293
295
/// `GLOBAL` and `WRITABLE` flags for a page might result in the corruption
294
296
/// of values stored in that page from processes running in other address
295
297
/// spaces.
296
- /// If you instead want to get the current flags on a mapped page, you can see the trait implementation `TranslateResult::Mapped` flags
297
298
unsafe fn update_flags (
298
299
& mut self ,
299
300
page : Page < S > ,
You can’t perform that action at this time.
0 commit comments