pub fn create_task(kernel: &Arc<Kernel>, task_name: &str) -> CurrentTask {
    let task = Task::create_process_without_parent(
        kernel,
        CString::new(task_name).unwrap(),
        create_pkgfs(),
    )
    .expect("failed to create second task");
    *task.exit_code.lock() = Some(0);
    task
}
/// Creates a new `Task` in the provided kernel.
///
/// The `Task` is backed by a real process, and can be used to test syscalls.
Creates a new `Task` in the provided kernel.
The `Task` is backed by a real process, and can be used to test syscalls.
Creates a new ` Task ` in the provided kernel . The ` Task ` is backed by a real process and can be used to test syscalls .
pub fn create_task(kernel: &Arc<Kernel>, task_name: &str) -> CurrentTask {
    let task = Task::create_process_without_parent(
        kernel,
        CString::new(task_name).unwrap(),
        create_pkgfs(),
    )
    .expect("failed to create second task");
    *task.exit_code.lock() = Some(0);
    task
}
pub fn create_task ( kernel : & Arc < Kernel > , task_name : & str ) -> CurrentTask { let task = Task :: create_process_without_parent ( kernel , CString :: new ( task_name ) . unwrap ( ) , create_pkgfs ( ) , ) . expect ( " " ) ; * task . exit_code . lock ( ) = Some ( 0 ) ; task }
Creates a new `Task` in the provided kernel.
Creates a new ` Task ` in the provided kernel .
kernel
&Arc<Kernel>
task_name
&str
kernel
&Arc<Kernel>
task_name
&str