pub struct DeviceTree {
pub version: u32,
pub boot_cpuid_phys: u32,
pub reserved: Vec<(u64, u64)>,
pub root: Node,
}Expand description
Device tree structure.
Fields§
§version: u32Version, as indicated by version header
boot_cpuid_phys: u32The number of the CPU the system boots from
reserved: Vec<(u64, u64)>A list of tuples of (offset, length), indicating reserved memory
root: NodeThe root node.
Implementations§
Source§impl DeviceTree
Load a device tree from a memory buffer.
impl DeviceTree
Load a device tree from a memory buffer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceTree
impl RefUnwindSafe for DeviceTree
impl Send for DeviceTree
impl Sync for DeviceTree
impl Unpin for DeviceTree
impl UnwindSafe for DeviceTree
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