#[repr(C)]pub struct AbiStructures {
pub stdio: ProcessStdio,
pub parent_process_pid: u32,
pub available_cpus: u32,
}Expand description
ABI structures are structures that are passed to processes by the parent process
for now only stdio file descriptors are passed
you get a pointer to them in the r8 register at _start (the 5th argument)
Fields§
§stdio: ProcessStdio§parent_process_pid: u32The PID of the parent process of this thread
available_cpus: u32The number of available CPUs for this process (currently the number of available CPUs in the system)
Implementations§
Source§impl AbiStructures
impl AbiStructures
pub fn new(stdio: ProcessStdio, parent_pid: u32, available_cpus: u32) -> Self
Trait Implementations§
Source§impl Clone for AbiStructures
impl Clone for AbiStructures
Source§fn clone(&self) -> AbiStructures
fn clone(&self) -> AbiStructures
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AbiStructures
impl Debug for AbiStructures
Source§impl PartialEq for AbiStructures
impl PartialEq for AbiStructures
Source§fn eq(&self, other: &AbiStructures) -> bool
fn eq(&self, other: &AbiStructures) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AbiStructures
impl Eq for AbiStructures
impl StructuralPartialEq for AbiStructures
Auto Trait Implementations§
impl Freeze for AbiStructures
impl RefUnwindSafe for AbiStructures
impl Send for AbiStructures
impl Sync for AbiStructures
impl Unpin for AbiStructures
impl UnsafeUnpin for AbiStructures
impl UnwindSafe for AbiStructures
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more