class BootProperties

Defined at line 20 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/boot-properties.h

Public Methods

zx::result<std::string_view> GetProperty (std::string_view key)

Extracts a property value (e.g. "kernel.param", "driver.option").

Precedence: Bootconfig first, then command line.

Defined at line 15 of file ../../zircon/kernel/phys/lib/boot-shim/boot-properties.cc

zx::result<std::string_view> GetProperty (std::string_view key)

Extracts a property value (e.g. "kernel.param", "driver.option").

Precedence: Bootconfig first, then command line.

Defined at line 15 of file ../../zircon/kernel/phys/lib/boot-shim/boot-properties.cc

void BootProperties (std::string_view cmdline, std::optional<linux_boot_config::LinuxBootConfig> bootconfig)

Defined at line 22 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/boot-properties.h

void BootProperties (std::string_view cmdline, std::optional<linux_boot_config::LinuxBootConfig> bootconfig)

Defined at line 22 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/boot-properties.h

template <auto&& cb>
void EnumerateProperty (std::string_view key, auto && cb)

Invokes a callback for all matching property definitions/appends for a key.

BootConfig is small enough that it's worthwhile to parse the entirety for each key we care

about to keep the API for each given item straightforward. We could refactor this to scan once,

but the ergonomics change to Item classes wouldn't be worth it.

Defined at line 36 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/boot-properties.h

template <auto&& cb>
void EnumerateProperty (std::string_view key, auto && cb)

Invokes a callback for all matching property definitions/appends for a key.

BootConfig is small enough that it's worthwhile to parse the entirety for each key we care

about to keep the API for each given item straightforward. We could refactor this to scan once,

but the ergonomics change to Item classes wouldn't be worth it.

Defined at line 36 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/boot-properties.h