Enum x86_64::structures::gdt::Descriptor[][src]

pub enum Descriptor {
    UserSegment(u64),
    SystemSegment(u64u64),
}
Expand description

A 64-bit mode segment descriptor.

Segmentation is no longer supported in 64-bit mode, so most of the descriptor contents are ignored.

Variants

UserSegment(u64)

Tuple Fields

0: u64

Descriptor for a code or data segment.

Since segmentation is no longer supported in 64-bit mode, almost all of code and data descriptors is ignored. Only some flags are still used.

SystemSegment(u64u64)

Tuple Fields

0: u64
1: u64

A system segment descriptor such as a LDT or TSS descriptor.

Implementations

Creates a segment descriptor for a 64-bit kernel code segment. Suitable for use with syscall or 64-bit sysenter.

Creates a segment descriptor for a kernel data segment (32-bit or 64-bit). Suitable for use with syscall or sysenter.

Creates a segment descriptor for a ring 3 data segment (32-bit or 64-bit). Suitable for use with sysret or sysexit.

Creates a segment descriptor for a 64-bit ring 3 code segment. Suitable for use with sysret or sysexit.

Creates a TSS system descriptor for the given TSS.

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

Performs the conversion.

Performs the conversion.

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.