Skip to main content

Module task_runtime

Module task_runtime 

Source

Functions§

address_space_membarrier_state
Loads the shared mm identity and membarrier registration state.
allocate_kernel_tls
Allocates TLS for the runtime’s fixed kernel-image template.
allocate_stack
Allocates a guarded stack satisfying request.
arm_address_space_reclaim
Arms one deferred retry after destruction observed an active CPU lease.
bind_context_thread
Binds a created context to its final generation-bearing thread ID.
cpu_remote_handle
Returns the Arc-backed crate::runtime::cpu::CpuRemote endpoint for cpu.
create_kernel_context
Creates a kernel execution context.
create_user_context
Creates a user-capable execution context with a mandatory address space.
current_cpu_id
Returns the calling CPU’s logical identifier under an existing pin.
current_cpu_owner_handles
Captures the complete pinned scheduler capability for the calling CPU.
current_cpu_remote_handle
Returns the Arc-backed crate::runtime::cpu::CpuRemote endpoint for the calling CPU.
current_preemption_pending
Tests the current execution context’s advisory preemption-pending state.
current_thread_identity
Returns the generation-bearing scheduler identity bound to the calling execution context.
current_thread_publication
Returns the scheduler publication bound to the calling execution context.
deallocate_stack
Releases a stack after the reaper proves no context can reference it.
deallocate_tls
Releases a TLS area after its execution context has been destroyed.
destroy_address_space
Releases an address-space object after no CPU retains it as active mm.
destroy_context
Destroys an execution context that cannot be scheduled again.
emergency_console_write
Writes directly to the runtime’s emergency console without taking an OS lock or re-entering the scheduler.
fatal_invariant
Reports an unrecoverable scheduler invariant and terminates execution.
finish_context_switch_tail
Withdraws the outgoing runtime context’s CPU binding after raw switch.
finish_initial_context_switch
Consumes the CPU-local scheduler switch baton on a fresh context.
flush_tlb_local
Flushes the current address space’s local translation cache.
hardirq_enter
Publishes entry into the runtime’s hard-interrupt lifecycle.
hardirq_exit
Publishes exit from the runtime’s hard-interrupt lifecycle.
idle_exit_restart_scheduler_tick
Restarts the periodic scheduler tick while leaving the idle thread.
in_hard_irq
Returns whether execution is currently inside a hard interrupt.
irq_guard_enter
Saves raw interrupt state, disables local IRQs and enters nested guards. A hard interrupt that already owns the runtime’s IRQ-return pin may return IrqGuardToken::NONE; nested users then borrow that single outer CPU owner instead of creating per-handler guard transactions.
irq_guard_exit
Leaves one nested IRQ guard and restores the outer raw state if needed.
local_irq_restore
Restores a raw local-interrupt state.
local_irq_save_and_disable
Saves the raw local-interrupt state and disables local interrupts.
monotonic_now
Returns one sample from the finite monotonic ktime domain.
notify_scheduler_cpu
Notifies cpu after the scheduler has published owner work.
preempt_guard_enter
Prevents the current task context from being preempted or migrated.
preempt_guard_exit
Leaves one nested task-preemption guard.
preempt_guard_exit_irq_return
Leaves one nested task-preemption guard at a hard-IRQ return boundary.
prepare_cpu_offline
Stops one owner CPU’s runtime facilities before final offline publication.
prepare_cpu_online
Prepares one owner CPU’s runtime facilities for scheduler publication.
publish_local_scheduler_work
Publishes sticky scheduler work to the current CPU’s architecture preemption state and reports whether a local safe point makes a self-IPI unnecessary.
publish_scheduler_deadline
Commits the current CPU’s complete scheduler-deadline state.
publish_scheduler_runtime_deadline
Commits the owner CPU’s current scheduling-class hrtick.
rq_clock_sample
Returns one coherent source sample for the current owner runqueue.
scheduler_frame_guard_enter
Enters the current CPU’s exact scheduler switch phase.
scheduler_frame_guard_exit
Consumes the current CPU’s scheduler switch baton after switch tail.
switch_context
Consumes one committed scheduler-switch transaction with local interrupts disabled.
synchronize_membarrier_cpu
Executes one bounded membarrier action synchronously on cpu.
task_system_handle
Returns the runtime-owned task-system handle, or NONE before setup.
trace_sched_switch
Captures a context-switch trace record without allocation or rq reentry.
update_address_space_membarrier_state
Advances one irreversible per-mm membarrier registration phase.
validate_owner_cpu_context
Validates one owner-CPU scheduler-state access.
validate_schedule_context
Validates an entry before it publishes task state or creates a baton.
wait_for_interrupt
Commits one local interrupt wait after the scheduler publishes polling.