Skip to main content

Module runtime_ops

Module runtime_ops 

Source

Statics§

FINISH_INTERRUPT_TRACE_BUDGET 🔒

Functions§

add_task
Add a task to the scheduler
add_task_with_parent
Add a task and register a parent/child relation.
class_table
Return the scheduler class-table currently in use.
configure_class_table
Configure scheduler class pick/steal order at runtime.
finish_interrupt_switch
Finalize a preemption-driven switch once the raw timer stub has already moved onto the next task’s kernel stack.
finish_switch
Called immediately after a context switch completes (in the new task’s context). This safely re-queues the previously running task now that its state is fully saved.
idle_task_main 🔒
The main function for the idle task
init_scheduler
Initialize the scheduler
interrupt_frame_fits 🔒
log_state
Dump per-cpu scheduler queues for tracing/debug.
maybe_preempt
Called from the timer interrupt handler (or a resched IPI) to potentially preempt the current task.
maybe_preempt_from_interrupt
Interrupt-aware preemption path.
schedule
Start the scheduler (called from kernel_main)
schedule_on_cpu
Performs the schedule on cpu operation.
set_verbose
Enable or disable verbose scheduler tracing.
state_snapshot
Structured scheduler state snapshot for shell/top/debug tooling.
verbose_enabled
Return current verbose tracing state.
yield_dead_task
Force a context switch away from the current task, unconditionally.
yield_task
Yield the current task to allow other tasks to run (cooperative).