class TestSerialNumberItem

Defined at line 23 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/test-serial-number.h

This "item" optionally provides a synthetic ZBI_TYPE_SERIAL_NUMBER item

when instructed by a special command-line argument found in the input ZBI.

Some tests use the special argument `bootloader.zbi.serial-number=...` to

ensure that a ZBI_TYPE_SERIAL_NUMBER will be present even if there isn't

one supplied by the boot loader, as is the case under generic emulation.

Public Methods

fit::result<InputZbi::Error> Init (InputZbi zbi)

Scan the ZBI-embedded command line switches for one meant specifically to

tell the shim to synthesize a ZBI_TYPE_SERIAL_NUMBER item.

Defined at line 19 of file ../../zircon/kernel/phys/lib/boot-shim/test-serial-number.cc

fit::result<InputZbi::Error> Init (InputZbi zbi)

Scan the ZBI-embedded command line switches for one meant specifically to

tell the shim to synthesize a ZBI_TYPE_SERIAL_NUMBER item.

Defined at line 19 of file ../../zircon/kernel/phys/lib/boot-shim/test-serial-number.cc

fit::result<InputZbi::Error> Init (InputZbi zbi)

Scan the ZBI-embedded command line switches for one meant specifically to

tell the shim to synthesize a ZBI_TYPE_SERIAL_NUMBER item.

Defined at line 19 of file ../../zircon/kernel/phys/lib/boot-shim/test-serial-number.cc

fit::result<InputZbi::Error> Init (InputZbi zbi)

Scan the ZBI-embedded command line switches for one meant specifically to

tell the shim to synthesize a ZBI_TYPE_SERIAL_NUMBER item.

Defined at line 19 of file ../../zircon/kernel/phys/lib/boot-shim/test-serial-number.cc

size_t size_bytes ()

Defined at line 29 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/test-serial-number.h

fit::result<DataZbi::Error> AppendItems (DataZbi & zbi)

Defined at line 48 of file ../../zircon/kernel/phys/lib/boot-shim/test-serial-number.cc

fit::result<DataZbi::Error> AppendItems (DataZbi & zbi)

Defined at line 48 of file ../../zircon/kernel/phys/lib/boot-shim/test-serial-number.cc

fit::result<DataZbi::Error> AppendItems (DataZbi & zbi)

Defined at line 48 of file ../../zircon/kernel/phys/lib/boot-shim/test-serial-number.cc

fit::result<DataZbi::Error> AppendItems (DataZbi & zbi)

Defined at line 48 of file ../../zircon/kernel/phys/lib/boot-shim/test-serial-number.cc