pub struct SchedTaskMemoryRaw {
pub stack: *mut u8,
pub stack_bytes: usize,
pub tcb: *mut u8,
pub tcb_bytes: usize,
}Expand description
Each spawned sched task’s TASK memory (stack + control block):
nros::main! emits one SchedTaskMemory static per spawned sched task, sized from
its stack_bytes, and hands the SchedTaskMemorySet rows to a board whose
sched task runner creates the task over them (FreeRTOS xTaskCreateStatic).
One spawned sched task’s RTOS task memory as a board receives it: raw,
Copy, no lifetime. The ENTRY owns the bytes (SchedTaskMemory); the
handout is once-only (SchedTaskMemorySet::take), which is what makes the
raw pointers exclusive.
Fields§
§stack: *mut u8The stack: stack_bytes bytes, 64-byte aligned.
stack_bytes: usizeThe stack’s size in bytes — the sched task’s declared stack_bytes (or the
family default), rounded up to whole words.
tcb: *mut u8The control-block region: tcb_bytes bytes, 64-byte aligned.
tcb_bytes: usizeSCHED_TASK_TCB_U64S words.
Implementations§
Source§impl SchedTaskMemoryRaw
impl SchedTaskMemoryRaw
Sourcepub const NONE: SchedTaskMemoryRaw
pub const NONE: SchedTaskMemoryRaw
“This sched task has no task memory from the entry”: the port keeps its own
default (Zephyr’s pool slot for a sched task that declared no stack_bytes).
Trait Implementations§
Source§impl Clone for SchedTaskMemoryRaw
impl Clone for SchedTaskMemoryRaw
Source§fn clone(&self) -> SchedTaskMemoryRaw
fn clone(&self) -> SchedTaskMemoryRaw
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more