Skip to main content

fork_current

Function fork_current 

Source
pub fn fork_current(tf: &TrapFrame) -> isize
Expand description

Fork the current user process by deep-copying the parent’s user pages. Returns child PID (to parent) or 0 (to child).