Struct x86::shared::dtables::DescriptorTablePointer [] [src]

pub struct DescriptorTablePointer<Entry> {
    pub limit: u16,
    pub base: *const Entry,

A struct describing a pointer to a descriptor table (GDT / IDT). This is in a format suitable for giving to 'lgdt' or 'lidt'.


limit: u16

Size of the DT.

base: *const Entry

Pointer to the memory region containing the DT.


impl DescriptorTablePointer<SegmentDescriptor>

fn new_gdtp(gdt: &[SegmentDescriptor]) -> Self

fn new_ldtp(ldt: &[SegmentDescriptor]) -> Self

impl DescriptorTablePointer<IdtEntry>

fn new_idtp(idt: &[IdtEntry]) -> Self

Trait Implementations

impl<Entry: Debug> Debug for DescriptorTablePointer<Entry>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.