Struct x86_64::structures::gdt::SegmentSelector [] [src]

pub struct SegmentSelector(pub u16);

Specifies which element to load into a segment from descriptor tables (i.e., is a index to LDT or GDT table with some additional flags).

See Intel 3a, Section 3.4.2 "Segment Selectors"

Methods

impl SegmentSelector
[src]

Creates a new SegmentSelector

Arguments

  • index: index in GDT or LDT array.
  • rpl: the requested privilege level

Returns the GDT index.

Returns the requested privilege level.

Trait Implementations

impl Debug for SegmentSelector
[src]

Formats the value using the given formatter.