Type Alias linux_user_desc

Source
pub type linux_user_desc = user_desc;
Expand description

Descriptor type, used e.g. as the tls parameter to the clone syscall.

Aliased Type§

struct linux_user_desc {
    pub entry_number: u32,
    pub base_addr: u32,
    pub limit: u32,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
    pub __bindgen_padding_0: [u8; 3],
}

Fields§

§entry_number: u32§base_addr: u32§limit: u32§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§__bindgen_padding_0: [u8; 3]

Implementations

Source§

impl user_desc

Source

pub fn seg_32bit(&self) -> u32

Source

pub fn set_seg_32bit(&mut self, val: u32)

Source

pub unsafe fn seg_32bit_raw(this: *const user_desc) -> u32

Source

pub unsafe fn set_seg_32bit_raw(this: *mut user_desc, val: u32)

Source

pub fn contents(&self) -> u32

Source

pub fn set_contents(&mut self, val: u32)

Source

pub unsafe fn contents_raw(this: *const user_desc) -> u32

Source

pub unsafe fn set_contents_raw(this: *mut user_desc, val: u32)

Source

pub fn read_exec_only(&self) -> u32

Source

pub fn set_read_exec_only(&mut self, val: u32)

Source

pub unsafe fn read_exec_only_raw(this: *const user_desc) -> u32

Source

pub unsafe fn set_read_exec_only_raw(this: *mut user_desc, val: u32)

Source

pub fn limit_in_pages(&self) -> u32

Source

pub fn set_limit_in_pages(&mut self, val: u32)

Source

pub unsafe fn limit_in_pages_raw(this: *const user_desc) -> u32

Source

pub unsafe fn set_limit_in_pages_raw(this: *mut user_desc, val: u32)

Source

pub fn seg_not_present(&self) -> u32

Source

pub fn set_seg_not_present(&mut self, val: u32)

Source

pub unsafe fn seg_not_present_raw(this: *const user_desc) -> u32

Source

pub unsafe fn set_seg_not_present_raw(this: *mut user_desc, val: u32)

Source

pub fn useable(&self) -> u32

Source

pub fn set_useable(&mut self, val: u32)

Source

pub unsafe fn useable_raw(this: *const user_desc) -> u32

Source

pub unsafe fn set_useable_raw(this: *mut user_desc, val: u32)

Source

pub fn lm(&self) -> u32

Source

pub fn set_lm(&mut self, val: u32)

Source

pub unsafe fn lm_raw(this: *const user_desc) -> u32

Source

pub unsafe fn set_lm_raw(this: *mut user_desc, val: u32)

Source

pub fn new_bitfield_1( seg_32bit: u32, contents: u32, read_exec_only: u32, limit_in_pages: u32, seg_not_present: u32, useable: u32, lm: u32, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations

Source§

impl Clone for user_desc

Source§

fn clone(&self) -> user_desc

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for user_desc

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Copy for user_desc