Skip to main content

AbiStructures

Struct AbiStructures 

Source
#[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: u32

The PID of the parent process of this thread

§available_cpus: u32

The number of available CPUs for this process (currently the number of available CPUs in the system)

Implementations§

Source§

impl AbiStructures

Source

pub fn new(stdio: ProcessStdio, parent_pid: u32, available_cpus: u32) -> Self

Trait Implementations§

Source§

impl Clone for AbiStructures

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for AbiStructures

Source§

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

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

impl PartialEq for AbiStructures

Source§

fn eq(&self, other: &AbiStructures) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for AbiStructures

Source§

impl Eq for AbiStructures

Source§

impl StructuralPartialEq for AbiStructures

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.