#[repr(C)]pub struct KernelFileRequest {
pub id: [u64; 4],
pub revision: u64,
pub response: Option<NonNull<KernelFileResponse<'static>>>,
}Expand description
Request the file the Kernel was loaded from
Fields§
§id: [u64; 4]The request id array
revision: u64The request revision
response: Option<NonNull<KernelFileResponse<'static>>>Response pointer
Implementations§
Source§impl KernelFileRequest
impl KernelFileRequest
Sourcepub unsafe fn get_response(&self) -> Option<&KernelFileResponse<'_>>
pub unsafe fn get_response(&self) -> Option<&KernelFileResponse<'_>>
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 KernelFileRequest
impl RefUnwindSafe for KernelFileRequest
impl !Send for KernelFileRequest
impl !Sync for KernelFileRequest
impl Unpin for KernelFileRequest
impl UnwindSafe for KernelFileRequest
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