Skip to content

Commit c1f380e

Browse files
committed
rename map_range_2mib to map_to_range_2mib
1 parent 8c8b1d9 commit c1f380e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/structures/paging/mapper/mapped_page_table.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ impl<'a, P: PageTableFrameMapping> MappedPageTable<'a, P> {
361361
}
362362

363363
#[inline]
364-
fn map_range_2mib<F, A>(
364+
fn map_to_range_2mib<F, A>(
365365
&mut self,
366366
pages: PageRange<Size2MiB>,
367367
frames: F,
@@ -788,7 +788,7 @@ impl<'a, P: PageTableFrameMapping> Mapper<Size2MiB> for MappedPageTable<'a, P> {
788788
A: FrameAllocator<Size4KiB> + ?Sized,
789789
{
790790
assert_eq!(pages.count(), frames.count());
791-
self.map_range_2mib(
791+
self.map_to_range_2mib(
792792
pages,
793793
|page, _| {
794794
let offset = page - pages.start;
@@ -812,7 +812,7 @@ impl<'a, P: PageTableFrameMapping> Mapper<Size2MiB> for MappedPageTable<'a, P> {
812812
Self: Sized,
813813
A: FrameAllocator<Size4KiB> + FrameAllocator<Size2MiB> + ?Sized,
814814
{
815-
self.map_range_2mib(
815+
self.map_to_range_2mib(
816816
pages,
817817
|_, allocator| allocator.allocate_frame(),
818818
flags,

src/structures/paging/mapper/recursive_page_table.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ impl<'a> RecursivePageTable<'a> {
514514
}
515515

516516
#[inline]
517-
fn map_range_2mib<F, A>(
517+
fn map_to_range_2mib<F, A>(
518518
&mut self,
519519
pages: PageRange<Size2MiB>,
520520
frames: F,
@@ -971,7 +971,7 @@ impl<'a> Mapper<Size2MiB> for RecursivePageTable<'a> {
971971
A: FrameAllocator<Size4KiB> + ?Sized,
972972
{
973973
assert_eq!(pages.count(), frames.count());
974-
self.map_range_2mib(
974+
self.map_to_range_2mib(
975975
pages,
976976
|page, _| {
977977
let offset = page - pages.start;
@@ -995,7 +995,7 @@ impl<'a> Mapper<Size2MiB> for RecursivePageTable<'a> {
995995
Self: Sized,
996996
A: FrameAllocator<Size4KiB> + FrameAllocator<Size2MiB> + ?Sized,
997997
{
998-
self.map_range_2mib(
998+
self.map_to_range_2mib(
999999
pages,
10001000
|_, allocator| allocator.allocate_frame(),
10011001
flags,

0 commit comments

Comments
 (0)