#[repr(transparent)]pub struct PageTableEntry(_);
A page table entry, which is a
u64 value under the hood.
It contains a the physical address of the
Frame being mapped by this entry
and the access bits (encoded
PteFlags) that describes how it’s mapped,
e.g., readable, writable, no exec, etc.
There isn’t and shouldn’t be any way to create/instantiate a new
You can only obtain a reference to an
PageTableEntry by going through a page table’s
Table struct itself.
true if this entry is unused, i.e., cleared/zeroed out.
Zeroes out this entry, setting it as “unused”.
Removes the mapping represented by this page table entry.
If the frame(s) pointed to by this entry were mapped exlusively, i.e., owned by this entry and not mapped anywhere else by any other entries, then this function returns those frames. This is useful because those returned frames can then be safely deallocated.
Returns the physical
Frame pointed to (mapped by) this
If this page table entry is not
PRESENT, this returns
PageTableEntry to map the given
frame with the given
This is the actual mapping action that informs the MMU of a new mapping.
Note: this performs no checks about the current value of this page table entry.
Sets the flags components of this
This does not modify the frame part of the page table entry.
Auto Trait Implementations§
Returns the argument unchanged.