class CpuTopologyTable
Defined at line 24 of file ../../src/lib/zbitl/include/lib/zbitl/items/cpu-topology.h
CpuTopologyTable encodes the ZBI description of a CPU topology (per
ZBI_TYPE_CPU_TOPOLOGY). Its main utility lies in provided backwards
compatibility with arm bootloaders that pass the deprecated
ZBI_TYPE_DEPRECATED_CPU_TOPOLOGY_V1 or ZBI_TYPE_DEPRECATED_CPU_TOPOLOGY_V2
types.
Public Methods
fit::result<std::string_view, CpuTopologyTable> FromPayload (uint32_t item_type, ByteView payload)
Create a CpuTopologyTable from a ZBI item payload, which may be either
ZBI_TYPE_DEPRECATED_CPU_TOPOLOGY_V1 or ZBI_TYPE_DEPRECATED_CPU_TOPOLOGY_V2.
Defined at line 13 of file ../../src/lib/zbitl/cpu-topology.cc
fit::result<std::string_view, CpuTopologyTable> FromPayload (uint32_t item_type, ByteView payload)
Create a CpuTopologyTable from a ZBI item payload, which may be either
ZBI_TYPE_DEPRECATED_CPU_TOPOLOGY_V1 or ZBI_TYPE_DEPRECATED_CPU_TOPOLOGY_V2.
Defined at line 13 of file ../../src/lib/zbitl/cpu-topology.cc
fit::result<std::string_view, CpuTopologyTable> FromPayload (uint32_t item_type, ByteView payload)
Create a CpuTopologyTable from a ZBI item payload, which may be either
ZBI_TYPE_DEPRECATED_CPU_TOPOLOGY_V1 or ZBI_TYPE_DEPRECATED_CPU_TOPOLOGY_V2.
Defined at line 13 of file ../../src/lib/zbitl/cpu-topology.cc
fit::result<std::string_view, CpuTopologyTable> FromPayload (uint32_t item_type, ByteView payload)
Create a CpuTopologyTable from a ZBI item payload, which may be either
ZBI_TYPE_DEPRECATED_CPU_TOPOLOGY_V1 or ZBI_TYPE_DEPRECATED_CPU_TOPOLOGY_V2.
Defined at line 13 of file ../../src/lib/zbitl/cpu-topology.cc
template <class Iterator>
fit::result<std::string_view, CpuTopologyTable> FromItem (Iterator it)
Defined at line 34 of file ../../src/lib/zbitl/include/lib/zbitl/items/cpu-topology.h
template <class Iterator>
fit::result<std::string_view, CpuTopologyTable> FromItem (Iterator it)
Defined at line 34 of file ../../src/lib/zbitl/include/lib/zbitl/items/cpu-topology.h
size_t size_bytes ()
Defined at line 42 of file ../../src/lib/zbitl/include/lib/zbitl/items/cpu-topology.h
size_t size ()
Return the number of zbi_topology_node_v2_t entries in the table.
Defined at line 262 of file ../../src/lib/zbitl/cpu-topology.cc
iterator begin ()
Defined at line 266 of file ../../src/lib/zbitl/cpu-topology.cc
iterator end ()
Defined at line 270 of file ../../src/lib/zbitl/cpu-topology.cc