Skip to main content

Module cpu

Module cpu 

Source
Expand description

Pinned CPU capabilities and scheduler observations.

Structs§

CpuLoadSummary
Allocation-free lockless hints used by remote placement and balancing.
CpuLocal
Scheduler state that is created explicitly and mutated only by its owner CPU.
CpuLocalOwnerBorrow
Exclusive owner borrow of one pinned CpuLocal.
CpuRemote
Stable cross-CPU publication endpoint for one scheduler owner.
CpuRemoteHandle
Opaque pointer-sized handle to one Arc-backed remote CPU endpoint.
CpuSnapshot
Stable, allocation-free scheduler state used by deterministic model tests.
CurrentCpuLocalHandle
Opaque address of the current CPU’s pinned owner-only scheduler object.
CurrentCpuOwnerHandles
Runtime-owned capability snapshot for one pinned scheduler CPU.
IrqGuardToken
Token returned by the nested IRQ guard service.
LocalIrqState
Runtime-defined raw local-IRQ state saved by a synchronization guard.
OwnerControlDrain
Result of one bounded owner-control drain.
PreemptGuardToken
Token returned by the nested task-preemption guard service.
RqClockSample
One Linux-style runqueue-clock observation for a target CPU.
RuntimeCpuId
Logical CPU identifier exchanged with the operating-system runtime.
SchedulerDeadlineUpdate
One generation-ordered publication from a CPU’s scheduler owner.

Enums§

CpuLifecycleState
Placement and remote-publication state of one logical CPU.
SchedulerRuntimeDeadline
Owner-local update for the current scheduling class’s hrtick.

Functions§

current_cpu_needs_resched
Tests the sticky reschedule state of the calling CPU.
current_needs_immediate_scheduler_work_pinned
Tests only scheduler work consumed by kernel preempt-enable/IRQ return.
current_needs_reschedule_pinned
Tests the current CPU’s sticky reschedule request while migration is pinned.
idle_current_cpu_once
Executes one lossless idle publication/recheck/WFI iteration.