nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
/// Creates a new kernel-scheduled thread of execution in the context of the current process.
pub unsafe fn thr_new(param: &mut thr_param_t) -> Result<(), Errno> {
    let param_ptr = core::ptr::from_mut(param) as usize;
    let param_size = core::mem::size_of::<thr_param_t>();
    unsafe { syscall2(SYS_THR_NEW, param_ptr, param_size).map(drop) }
}