#[repr(C)]pub struct KernelAddressRequest {
pub id: [u64; 4],
pub revision: u64,
pub response: Option<NonNull<KernelAddressResponse>>,
}Expand description
Request the physical and virtual address of the Kernel
Fields§
§id: [u64; 4]The request id array
revision: u64The request revision
response: Option<NonNull<KernelAddressResponse>>Response pointer
Implementations§
Source§impl KernelAddressRequest
impl KernelAddressRequest
Sourcepub unsafe fn get_response(&self) -> Option<&KernelAddressResponse>
pub unsafe fn get_response(&self) -> Option<&KernelAddressResponse>
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 KernelAddressRequest
impl RefUnwindSafe for KernelAddressRequest
impl !Send for KernelAddressRequest
impl !Sync for KernelAddressRequest
impl Unpin for KernelAddressRequest
impl UnwindSafe for KernelAddressRequest
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