#[repr(C)]pub struct MemRange {
pub paddr: u64,
pub length: u64,
pub type: MemType,
pub reserved: u32,
}
Expand description
The ZBI_TYPE_MEM_CONFIG payload consist of one or more zbi_mem_range_t
entries.
The length of the item is sizeof(zbi_mem_range_t)
times the number of
entries. Each entry describes a contiguous range of memory
Entries in the table may be in any order, and only a single item of type ZBI_TYPE_MEM_CONFIG should be present in the ZBI.
Fields§
§paddr: u64
§length: u64
§type: MemType
§reserved: u32
Trait Implementations§
impl Copy for MemRange
impl Eq for MemRange
impl IntoBytes for MemRange
impl StructuralPartialEq for MemRange
Auto Trait Implementations§
impl Freeze for MemRange
impl RefUnwindSafe for MemRange
impl Send for MemRange
impl Sync for MemRange
impl Unpin for MemRange
impl UnwindSafe for MemRange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)