Struct nc::types::user_desc_t [−][src]
#[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, }
Expand description
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: u32
base_addr: u32
limit: u32
seg_32bit: u8
contents: u8
read_exec_only: u8
limit_in_pages: u8
seg_not_present: u8
useable: u8
lm: 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.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for user_desc_t
impl Send for user_desc_t
impl Sync for user_desc_t
impl Unpin for user_desc_t
impl UnwindSafe for user_desc_t
Blanket Implementations
Mutably borrows from an owned value. Read more