Struct x86_64::structures::tss::TaskStateSegment[][src]

#[repr(C, packed)]
pub struct TaskStateSegment { pub privilege_stack_table: [VirtAddr; 3], pub interrupt_stack_table: [VirtAddr; 7], pub iomap_base: u16, // some fields omitted }
Expand description

In 64-bit mode the TSS holds information that is not directly related to the task-switch mechanism, but is used for finding kernel level stack if interrupts arrive while in kernel mode.

Fields

privilege_stack_table: [VirtAddr; 3]
Expand description

The full 64-bit canonical forms of the stack pointers (RSP) for privilege levels 0-2.

interrupt_stack_table: [VirtAddr; 7]
Expand description

The full 64-bit canonical forms of the interrupt stack table (IST) pointers.

iomap_base: u16
Expand description

The 16-bit offset to the I/O permission bit map from the 64-bit TSS base.

Implementations

impl TaskStateSegment[src]

pub const fn new() -> TaskStateSegment[src]

Creates a new TSS with zeroed privilege and interrupt stack table and a zero iomap_base.

Trait Implementations

impl Clone for TaskStateSegment[src]

fn clone(&self) -> TaskStateSegment[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for TaskStateSegment[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Copy for TaskStateSegment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.