Expand description
Task module.
The task module defines the structure and behavior of tasks in the system.
Modulesยง
- elf_
loader - ELF Loading Module
- namespace
- Task namespace module.
- syscall
- Task-related system call implementations.
Structsยง
- AbiZone
- ABI Zone structure holding a memory range with an owned ABI module.
- Atomic
Task State - Atomic task state for thread-safe state management
- Clone
Flags - Managed
Page - Task
- Task
Local - A cell type for task-local data that is only accessed by the hart currently executing the task.
Enumsยง
- Blocked
Type - Types of blocked states for tasks
- Clone
Flags Def - Task
State - Task
Type - Wait
Error
Staticsยง
- PARENT_
WAITPID_ ๐WAKERS - Note: TASK_ID has been moved to TaskPool::next_id for better ID management including recycling of freed task IDs. Use TaskPool::allocate_id() instead.
- WAITPID_
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_ waitpid_ waker - Get or create a parent waker for waitpid(-1) operations
- get_
waitpid_ waker - Get or create a waker for waitpid/wait operations for a specific task
- init_
parent_ ๐waitpid_ wakers - Initialize the parent waitpid waker registry
- init_
waitpid_ ๐wakers - Initialize the waitpid 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 via VfsManager
- task_
initial_ kernel_ entrypoint - Internal function to perform kernel context switch between tasks This function is called when a task is first scheduled.
- 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