#[repr(transparent)]
pub struct PDEntry(pub u32);
Expand description

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

Tuple Fields

0: u32

Implementations

Creates a new PDEntry.

Arguments
  • pt - The physical address of the page table.
  • flags- Additional flags for the entry.
Implementation notes

This doesn’t support PSE-36 or PSE-40.

Retrieves the physical address in this entry.

Returns the flags corresponding to this entry.

Present; must be 1 to map a 4-MByte page.

Read/write; if 0, writes may not be allowed to the 4-MByte page referenced by this entry.

User/supervisor; if 0, user-mode accesses are not allowed to the 4-MByte page referenced by this entry.

Page-level write-through.

Page-level cache disable.

Accessed; indicates whether software has accessed the 4-MByte page referenced by this entry.

Dirty; indicates whether software has written to the 4-MByte page referenced by this entry.

Page size; if set this entry maps a 4-MByte page; otherwise, this entry references a page directory.

Global; if CR4.PGE = 1, determines whether the translation is global; ignored otherwise.

If the PAT is supported, indirectly determines the memory type used to access the 4-MByte page referenced by this entry; otherwise, reserved (must be 0)

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.