Skip to content

Commit 9c7ff09

Browse files
committed
Improve docs for Mapper::identity_map
1 parent aa85dbb commit 9c7ff09

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

src/structures/paging/mapper/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ pub trait Mapper<S: PageSize> {
351351

352352
/// Maps the given frame to the virtual page with the same address.
353353
///
354+
/// This function might need additional physical frames to create new page
355+
/// tables. These frames are allocated from the `frame_allocator` argument.
356+
/// At most three frames are required.
357+
///
354358
/// ## Safety
355359
///
356360
/// This is a convencience function that invokes [`map_to`] internally, so

0 commit comments

Comments
 (0)