Struct device_tree::DeviceTree [] [src]

pub struct DeviceTree {
    pub version: u32,
    pub boot_cpuid_phys: u32,
    pub reserved: Vec<(u64, u64)>,
    pub root: Node,
}

Device tree structure.

Fields

version

Version, as indicated by version header

boot_cpuid_phys

The number of the CPU the system boots from

reserved

A list of tuples of (offset, length), indicating reserved memory

root

The root node.

Methods

impl DeviceTree

Load a device tree from a memory buffer.

fn load(buffer: &[u8]) -> Result<DeviceTree, DeviceTreeError>

fn find<'a>(&'a self, path: &str) -> Option<&'a Node>

Trait Implementations

Derived Implementations

impl Debug for DeviceTree

fn fmt(&self, __arg_0: &mut Formatter) -> Result