pub struct SchedTaskMemoryRaw {
pub stack: *mut u8,
pub stack_bytes: usize,
pub tcb: *mut u8,
pub tcb_bytes: usize,
}Expand description
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§
Trait Implementations§
Source§impl Clone for SchedTaskMemoryRaw
impl Clone for SchedTaskMemoryRaw
Source§fn clone(&self) -> SchedTaskMemoryRaw
fn clone(&self) -> SchedTaskMemoryRaw
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SchedTaskMemoryRaw
Source§impl Debug for SchedTaskMemoryRaw
impl Debug for SchedTaskMemoryRaw
impl Send for SchedTaskMemoryRaw
impl Sync for SchedTaskMemoryRaw
Auto Trait Implementations§
impl Freeze for SchedTaskMemoryRaw
impl RefUnwindSafe for SchedTaskMemoryRaw
impl Unpin for SchedTaskMemoryRaw
impl UnsafeUnpin for SchedTaskMemoryRaw
impl UnwindSafe for SchedTaskMemoryRaw
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more