Expand description
Statically bound calls and implementation binding for TaskRuntime.
Functions§
- address_
space_ membarrier_ state - Loads the shared
mmidentity 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::CpuRemoteendpoint forcpu. - 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::CpuRemoteendpoint 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
ktimedomain. - notify_
scheduler_ cpu - Notifies
cpuafter 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
NONEbefore setup. - trace_
sched_ switch - Captures a context-switch trace record without allocation or rq reentry.
- update_
address_ space_ membarrier_ state - Advances one irreversible per-
mmmembarrier 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.