[][src]Struct nc::types::user_desc_t

#[repr(C)]
pub struct user_desc_t {
    pub entry_number: u32,
    pub base_addr: u32,
    pub limit: u32,
    pub seg_32bit: u8,
    pub contents: u8,
    pub read_exec_only: u8,
    pub limit_in_pages: u8,
    pub seg_not_present: u8,
    pub useable: u8,
    pub lm: u8,
}

Note on 64bit base and limit is ignored and you cannot set DS/ES/CS not to the default values if you still want to do syscalls. This call is more for 32bit mode therefore.

Fields

entry_number: u32base_addr: u32limit: u32seg_32bit: u8contents: u8read_exec_only: u8limit_in_pages: u8seg_not_present: u8useable: u8lm: u8

Because this bit is not present in 32-bit user code, user programs can pass uninitialized values here. Therefore, in any context in which a user_desc comes from a 32-bit program, the kernel must act as though lm == 0, regardless of the actual value.

Auto Trait Implementations

Blanket Implementations

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

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.

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

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.

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

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

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