ConstantsΒ§
StaticsΒ§
FunctionsΒ§
- block_
current_ task - Block the current task and yield to the scheduler.
- cleanup_
task_ πresources - clear_
task_ wake_ deadline - Performs the clear task wake deadline operation.
- create_
session - Create a new session for the calling task.
- current_
pgid - Get the current process group id.
- current_
pid - Get the current process ID (POSIX pid).
- current_
sid - Get the current session id.
- current_
task_ clone - Get the current task (cloned Arc), if any.
- current_
task_ clone_ spin_ debug - Debug-only blocking variant used to diagnose early ring3 entry stalls.
- current_
task_ clone_ try - Best-effort, non-blocking variant of
current_task_clone. - current_
task_ id - Get the current taskβs ID (if any task is running).
- current_
task_ id_ try - Get the current taskβs ID without blocking (safe for exceptions).
- current_
tid - Get the current thread ID (POSIX tid).
- exit_
current_ task - Mark the current task as Dead and yield to the scheduler.
- finalize_
forced_ πdeath - Performs the finalize forced death operation.
- flush_
deferred_ silo_ cleanups - get_
child_ task_ id_ by_ pid - Resolve a direct child of
parentby POSIX pid. - get_
child_ task_ id_ by_ tid - Resolve a direct child of
parentby POSIX tid. - get_
parent_ id - Get parent task ID for a child task.
- get_
parent_ pid - Get parent process ID for a child task.
- get_
pgid_ by_ pid - Resolve a PID to the current process group id.
- get_
sid_ by_ pid - Resolve a PID to the current session id.
- get_
task_ by_ id - Get a task by its TaskId (if still registered).
- get_
task_ by_ pid - Resolve a POSIX pid to the corresponding task.
- get_
task_ id_ by_ pid - Resolve a POSIX pid to internal TaskId.
- get_
task_ id_ by_ tid - Resolve a POSIX tid to the corresponding internal task id.
- get_
task_ ids_ in_ pgid - Collect task IDs that currently belong to process group
pgid. - get_
task_ ids_ in_ tgid - Collect task IDs that currently belong to thread group
tgid. - kill_
task - Kill a task by ID (best-effort).
- queue_
silo_ πcleanup - Performs the cleanup task resources operation.
- reparent_
children π - Performs the reparent children operation. Reparent children of a dying task to PID 1 (init), or drop parent links if PID 1 is not available.
- resume_
task - Resume a previously suspended task by ID.
- set_
process_ group - Set process group id for
target_pid(or current ifNone). - set_
task_ sched_ policy - Update a task scheduling policy and requeue if needed.
- set_
task_ wake_ deadline - Sets task wake deadline.
- suspend_
task - Suspend a task by ID (best-effort).
- try_
wait_ child - Try to reap a zombie child.
- wake_
task - Wake a blocked task by its ID.