pub struct TierTaskMemoryRaw {
pub stack: *mut u8,
pub stack_bytes: usize,
pub tcb: *mut u8,
pub tcb_bytes: usize,
}Expand description
issue 1598 — one spawned tier’s task memory as a board receives it: raw,
Copy, no lifetime. The ENTRY owns the bytes (TierTaskMemory); the
handout is once-only (TierTaskMemorySet::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 tier’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: usizeTIER_TASK_TCB_U64S words.
Implementations§
Trait Implementations§
Source§impl Clone for TierTaskMemoryRaw
impl Clone for TierTaskMemoryRaw
Source§fn clone(&self) -> TierTaskMemoryRaw
fn clone(&self) -> TierTaskMemoryRaw
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 TierTaskMemoryRaw
Source§impl Debug for TierTaskMemoryRaw
impl Debug for TierTaskMemoryRaw
impl Send for TierTaskMemoryRaw
impl Sync for TierTaskMemoryRaw
Auto Trait Implementations§
impl Freeze for TierTaskMemoryRaw
impl RefUnwindSafe for TierTaskMemoryRaw
impl Unpin for TierTaskMemoryRaw
impl UnsafeUnpin for TierTaskMemoryRaw
impl UnwindSafe for TierTaskMemoryRaw
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