Struct x86_64::structures::paging::page::Page [−][src]
Expand description
A virtual memory page.
Implementations
Returns the page that starts at the given virtual address.
Returns an error if the address is not correctly aligned (i.e. is not a valid page start).
Returns the page that starts at the given virtual address.
Safety
The address must be correctly aligned.
Returns the page that contains the given virtual address.
Returns the start address of the page.
Returns the level 4 page table index of this page.
Returns the level 3 page table index of this page.
Returns a range of pages, exclusive end
.
pub const fn range_inclusive(start: Self, end: Self) -> PageRangeInclusive<S>ⓘNotable traits for PageRangeInclusive<S>impl<S: PageSize> Iterator for PageRangeInclusive<S> type Item = Page<S>;
pub const fn range_inclusive(start: Self, end: Self) -> PageRangeInclusive<S>ⓘNotable traits for PageRangeInclusive<S>impl<S: PageSize> Iterator for PageRangeInclusive<S> type Item = Page<S>;
impl<S: PageSize> Iterator for PageRangeInclusive<S> type Item = Page<S>;
Returns a range of pages, inclusive end
.
Returns the level 2 page table index of this page.
pub fn from_page_table_indices_1gib(
p4_index: PageTableIndex,
p3_index: PageTableIndex
) -> Self
pub fn from_page_table_indices_1gib(
p4_index: PageTableIndex,
p3_index: PageTableIndex
) -> Self
Returns the 1GiB memory page with the specified page table indices.
pub fn from_page_table_indices_2mib(
p4_index: PageTableIndex,
p3_index: PageTableIndex,
p2_index: PageTableIndex
) -> Self
pub fn from_page_table_indices_2mib(
p4_index: PageTableIndex,
p3_index: PageTableIndex,
p2_index: PageTableIndex
) -> Self
Returns the 2MiB memory page with the specified page table indices.
pub fn from_page_table_indices(
p4_index: PageTableIndex,
p3_index: PageTableIndex,
p2_index: PageTableIndex,
p1_index: PageTableIndex
) -> Self
pub fn from_page_table_indices(
p4_index: PageTableIndex,
p3_index: PageTableIndex,
p2_index: PageTableIndex,
p1_index: PageTableIndex
) -> Self
Returns the 4KiB memory page with the specified page table indices.
Returns the level 1 page table index of this page.
Trait Implementations
Performs the +=
operation. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Performs the -=
operation. Read more