template <typename T, size_t MaxScans>

class DevicetreeItemBase

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

Base class for DevicetreeItems, providing default implementations for the Matcher API.

Derived classes MUST implement OnNode.

Public Members

static const size_t kMaxScans
static const bool kMatchOkNodesOnly

Public Methods

void DevicetreeItemBase<T, MaxScans> ()

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

void DevicetreeItemBase<T, MaxScans> (const char * shim_name, FILE * log)

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

void OnError (std::string_view error)

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

devicetree::ScanState OnSubtree (const devicetree::NodePath & )

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

devicetree::ScanState OnScan ()

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

void OnDone ()

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

template <typename Shim>
void Init (const Shim & shim)

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

Protected Methods

void Log (const char * fmt)

Helper for logging in to |log_|.

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