#[repr(transparent)]
pub struct PML4Entry(pub u64);
Expand description

A PML4 Entry consists of an address and a bunch of flags.

Tuple Fields

0: u64

Implementations

Creates a new PML4Entry.

Arguments
  • pdpt - The physical address of the pdpt table.
  • flags- Additional flags for the entry.

Retrieves the physical address in this entry.

Is page present?

Read/write; if 0, writes may not be allowed to the 512-GByte region, controlled by this entry (see Section 4.6)

User/supervisor; if 0, user-mode accesses are not allowed to the 512-GByte region controlled by this entry.

Page-level write-through; indirectly determines the memory type used to access the page-directory-pointer table referenced by this entry.

Page-level cache disable; indirectly determines the memory type used to access the page-directory-pointer table referenced by this entry.

Accessed; indicates whether this entry has been used for linear-address translation.

If IA32_EFER.NXE = 1, execute-disable. If 1, instruction fetches are not allowed from the 512-GByte region.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.