clone

Function clone 

Source
pub unsafe fn clone(
    func: extern "C" fn(*mut c_void) -> i32,
    stack: *mut c_void,
    arg: *mut c_void,
    args: &CloneArgs,
) -> Result<Pid, Errno>
Expand description

ยงSafety

stack and arg pointers must point to memory the child can access while it is around