#[repr(C)]pub struct TSpawnConfig {
pub revision: u32,
pub argument_ptr: *const (),
pub priority: Optional<ContextPriority>,
pub cpu: Optional<usize>,
}Expand description
configuration for the thread spawn syscall for now it takes only a single argument pointer which is a pointer to an optional argument, that pointer is going to be passed to the thread as the second argument
Fields§
§revision: u32§argument_ptr: *const ()§priority: Optional<ContextPriority>§cpu: Optional<usize>The index of the CPU to append to, if it is None the kernel will choose one, use 0 for the boot CPU
Implementations§
Source§impl TSpawnConfig
impl TSpawnConfig
Auto Trait Implementations§
impl Freeze for TSpawnConfig
impl RefUnwindSafe for TSpawnConfig
impl !Send for TSpawnConfig
impl !Sync for TSpawnConfig
impl Unpin for TSpawnConfig
impl UnwindSafe for TSpawnConfig
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