Module task

Source
Expand description

Task module.

The task module defines the structure and behavior of tasks in the system.

Modulesยง

elf_loader
ELF Loading Module
syscall
Task-related system call implementations.

Structsยง

CloneFlags
ManagedPage
Task

Enumsยง

BlockedType
Types of blocked states for tasks
CloneFlagsDef
TaskState
TaskType
WaitError

Staticsยง

PARENT_WAKERS ๐Ÿ”’
Global registry of parent task wakers for waitpid(-1) operations Each parent task has a waker that gets triggered when any of its children exit
TASK_ID ๐Ÿ”’
TASK_WAKERS ๐Ÿ”’
Global registry of task-specific wakers for waitpid

Functionsยง

cleanup_parent_waker
Clean up the parent waker for a specific task
cleanup_task_waker
Clean up the waker for a specific task
get_parent_waker
Get or create a parent waker for waitpid(-1) operations
get_task_waker
Get or create a waker for a specific task
init_parent_wakers ๐Ÿ”’
Initialize the parent waker registry
init_task_wakers ๐Ÿ”’
Initialize the task wakers registry
mytask
Get the current task.
new_kernel_task
Create a new kernel task.
new_user_task
Create a new user task.
set_current_task_cwd
Set the current working directory for the current task
wake_parent_waiters
Wake up a parent process waiting for any child (waitpid(-1))
wake_task_waiters
Wake up any processes waiting for a specific task