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ยง
Enumsยง
- Blocked
Type - Types of blocked states for tasks
- Clone
Flags Def - Task
State - Task
Type - Wait
Error
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