Skip to main content

Module task_ops

Module task_ops 

Source

ConstantsΒ§

PENDING_SILO_CLEANUPS_CAPACITY πŸ”’

StaticsΒ§

PENDING_SILO_CLEANUPS πŸ”’

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 parent by POSIX pid.
get_child_task_id_by_tid
Resolve a direct child of parent by 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 if None).
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.