pub fn create_system_task<L>(
locked: &mut Locked<L>,
kernel: &Arc<Kernel>,
fs: Arc<FsContext>,
) -> Result<CurrentTask, Errno>where
L: LockBefore<TaskRelease>,Expand description
Create a task that runs inside the kernel.
There is no underlying Zircon process to host the task. Instead, the work done by this task is performed by a thread in the original Starnix process, possible as part of a thread pool.
This function is the preferred way to create a context for doing background work inside the kernel.
Rather than calling this function directly, consider using kthreads, which provides both
a system task and a threadpool on which the task can do work.