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: 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.

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

Returns the “default value” for a type. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.