Skip to content

Commit 8c58b15

Browse files
committed
doc: changed message
following #465 (review)
1 parent c6109b2 commit 8c58b15

File tree

1 file changed

+3
-2
lines changed
  • src/structures/paging/mapper

1 file changed

+3
-2
lines changed

src/structures/paging/mapper/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,16 @@ pub trait Mapper<S: PageSize> {
285285
fn unmap(&mut self, page: Page<S>) -> Result<(PhysFrame<S>, MapperFlush<S>), UnmapError>;
286286

287287
/// 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+
///
289291
/// ## Safety
290292
///
291293
/// This method is unsafe because changing the flags of a mapping
292294
/// might result in undefined behavior. For example, setting the
293295
/// `GLOBAL` and `WRITABLE` flags for a page might result in the corruption
294296
/// of values stored in that page from processes running in other address
295297
/// spaces.
296-
/// If you instead want to get the current flags on a mapped page, you can see the trait implementation `TranslateResult::Mapped` flags
297298
unsafe fn update_flags(
298299
&mut self,
299300
page: Page<S>,

0 commit comments

Comments
 (0)