pub struct Chosen<'a> { /* private fields */ }Expand description
The /chosen node containing boot parameters.
This node contains system configuration parameters chosen by the firmware or bootloader, such as boot arguments, console paths, and other boot-time settings.
Implementations§
Source§impl<'a> Chosen<'a>
impl<'a> Chosen<'a>
Sourcepub fn bootargs(&self) -> Option<&'a str>
pub fn bootargs(&self) -> Option<&'a str>
Returns the bootargs property value.
This property contains command-line arguments to be passed to the operating system kernel.
Sourcepub fn stdout_path(&self) -> Option<&'a str>
pub fn stdout_path(&self) -> Option<&'a str>
Returns the stdout-path property value.
This property specifies the path to the device to be used for standard output (console).
Sourcepub fn stdin_path(&self) -> Option<&'a str>
pub fn stdin_path(&self) -> Option<&'a str>
Returns the stdin-path property value.
This property specifies the path to the device to be used for standard input.
Methods from Deref<Target = NodeBase<'a>>§
Sourcepub fn properties(&self) -> PropIter<'a> ⓘ
pub fn properties(&self) -> PropIter<'a> ⓘ
Returns an iterator over this node’s properties.
Sourcepub fn find_property(&self, name: &str) -> Option<Property<'a>>
pub fn find_property(&self, name: &str) -> Option<Property<'a>>
Finds a property by name.
Sourcepub fn find_property_str(&self, name: &str) -> Option<&'a str>
pub fn find_property_str(&self, name: &str) -> Option<&'a str>
Finds a string property by name.
Sourcepub fn reg(&self) -> Option<RegIter<'a>>
pub fn reg(&self) -> Option<RegIter<'a>>
Finds and parses the reg property, returning a Reg iterator.
Sourcepub fn reg_array<const N: usize>(&self) -> Vec<RegInfo, N>
pub fn reg_array<const N: usize>(&self) -> Vec<RegInfo, N>
Finds and parses the reg property, returning all RegInfo entries.
Sourcepub fn compatibles(&self) -> impl Iterator<Item = &'a str>
pub fn compatibles(&self) -> impl Iterator<Item = &'a str>
Returns an iterator over compatible strings.