#[repr(C)]pub struct StackSizeRequest {
pub id: [u64; 4],
pub revision: u64,
pub response: Option<NonNull<StackSizeResponse>>,
pub stack_size: u64,
}Expand description
Specify how much stack you desire the bootloader to give you
Fields§
§id: [u64; 4]The request id array
revision: u64The request revision
response: Option<NonNull<StackSizeResponse>>Response pointer
stack_size: u64The amount of stack to request
Implementations§
Source§impl StackSizeRequest
impl StackSizeRequest
Sourcepub unsafe fn get_response(&self) -> Option<&StackSizeResponse>
pub unsafe fn get_response(&self) -> Option<&StackSizeResponse>
Get the response as a reference, if it’s present.
§Safety
The backing memory must not have been invalidated by the kernel, either by writing to the physical memory, changing where it’s mapped, or unmapping it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StackSizeRequest
impl RefUnwindSafe for StackSizeRequest
impl !Send for StackSizeRequest
impl !Sync for StackSizeRequest
impl Unpin for StackSizeRequest
impl UnwindSafe for StackSizeRequest
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