pub struct Memory<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Memory<'a>
impl<'a> Memory<'a>
Sourcepub fn regions(
&self,
) -> impl Iterator<Item = Result<MemoryRegion, FdtError>> + 'a
pub fn regions( &self, ) -> impl Iterator<Item = Result<MemoryRegion, FdtError>> + 'a
A memory device node is required for all devicetrees and describes the physical memory layout for the system. If a system has multiple ranges of memory, multiple memory nodes can be created, or the ranges can be specified in the reg property of a single memory node.
pub fn name(&self) -> &'a str
Methods from Deref<Target = NodeBase<'a>>§
pub fn parent_name(&self) -> Option<&'a str>
pub fn parent(&self) -> Option<Node<'a>>
pub fn raw(&self) -> Raw<'a>
Sourcepub fn compatibles(
&self,
) -> Result<impl Iterator<Item = &'a str> + 'a, FdtError>
pub fn compatibles( &self, ) -> Result<impl Iterator<Item = &'a str> + 'a, FdtError>
Get compatible strings for this node (placeholder implementation)
pub fn compatibles_flatten( &self, ) -> Result<impl Iterator<Item = &'a str> + 'a, FdtError>
pub fn reg(&self) -> Result<RegIter<'a>, FdtError>
Sourcepub fn debug_info(&self) -> NodeDebugInfo<'a>
pub fn debug_info(&self) -> NodeDebugInfo<'a>
获取节点的完整路径信息(仅限调试用途)
pub fn properties( &self, ) -> impl Iterator<Item = Result<Property<'a>, FdtError>> + '_
pub fn find_property(&self, name: &str) -> Result<Property<'a>, FdtError>
pub fn phandle(&self) -> Result<Phandle, FdtError>
Sourcepub fn interrupt_parent(&self) -> Result<InterruptController<'a>, FdtError>
pub fn interrupt_parent(&self) -> Result<InterruptController<'a>, FdtError>
Find InterruptController from current node or its parent
Sourcepub fn get_interrupt_parent_phandle(&self) -> Option<Phandle>
pub fn get_interrupt_parent_phandle(&self) -> Option<Phandle>
Get the interrupt parent phandle for this node
pub fn interrupts( &self, ) -> Result<impl Iterator<Item = impl Iterator<Item = u32> + 'a> + 'a, FdtError>
pub fn clock_frequency(&self) -> Result<u32, FdtError>
pub fn children(&self) -> NodeChildIter<'a> ⓘ
pub fn status(&self) -> Result<Status, FdtError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Memory<'a>
impl<'a> RefUnwindSafe for Memory<'a>
impl<'a> Send for Memory<'a>
impl<'a> Sync for Memory<'a>
impl<'a> Unpin for Memory<'a>
impl<'a> UnwindSafe for Memory<'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