pub struct Fdt<'a> { /* private fields */ }
Expand description
The reference to the FDT raw data.
Implementations§
Source§impl<'a> Fdt<'a>
impl<'a> Fdt<'a>
Sourcepub fn from_bytes(data: &'a [u8]) -> FdtResult<'a, Self>
pub fn from_bytes(data: &'a [u8]) -> FdtResult<'a, Self>
Create a new FDT from raw data.
pub fn version(&self) -> usize
Sourcepub fn boot_cpuid_phys(&self) -> u32
pub fn boot_cpuid_phys(&self) -> u32
This field shall contain the physical ID of the system’s boot CPU. It shall be identical to the physical ID given in the reg property of that CPU node within the devicetree.
Sourcepub fn memory_reservation_block(
&self,
) -> impl Iterator<Item = MemoryRegion> + '_
pub fn memory_reservation_block( &self, ) -> impl Iterator<Item = MemoryRegion> + '_
The memory reservation block provides the client program with a list of areas in physical memory which are reserved; that is, which shall not be used for general memory allocations. It is used to protect vital data structures from being overwritten by the client program.
pub fn all_nodes(&'a self) -> impl Iterator<Item = Node<'a>>
pub fn chosen(&'a self) -> Option<Chosen<'a>>
pub fn get_node_by_phandle(&'a self, phandle: Phandle) -> Option<Node<'a>>
pub fn get_node_by_name(&'a self, name: &str) -> Option<Node<'a>>
pub fn find_compatible(&'a self, with: &[&str]) -> Option<Node<'a>>
Sourcepub fn find_node(&'a self, path: &str) -> Option<Node<'a>>
pub fn find_node(&'a self, path: &str) -> Option<Node<'a>>
if path start with ‘/’ then search by path, else search by aliases
pub fn find_aliase(&'a self, name: &str) -> Option<&'a str>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Fdt<'a>
impl<'a> RefUnwindSafe for Fdt<'a>
impl<'a> Send for Fdt<'a>
impl<'a> Sync for Fdt<'a>
impl<'a> Unpin for Fdt<'a>
impl<'a> UnwindSafe for Fdt<'a>
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
)