class PowerDomainRegistry
Defined at line 610 of file ../../zircon/kernel/lib/power-management/include/lib/power-management/energy-model.h
Tracks the set of configured power domains and provides methods for
updating, querying, and visiting the power domain set.
Public Methods
zx::result<fbl::RefPtr<PowerDomain>> Register (const fbl::RefPtr<PowerDomain> & power_domain)
Registers the given power domain, using the given callback to update each
CPU with a copy of the new power domain set.
Defined at line 153 of file ../../zircon/kernel/lib/power-management/energy-model.cc
zx::result<fbl::RefPtr<PowerDomain>> Unregister (uint32_t domain_id)
Unregisters the given power domain, using the given callback to update each
CPU with a copy of the new power domain set.
Defined at line 164 of file ../../zircon/kernel/lib/power-management/energy-model.cc
void PowerDomainRegistry (UpdateCallback update_callback)
Constructs a power domain registry with the given optional callback. The
given callback may do nothing, but it may not be nullptr.
Defined at line 618 of file ../../zircon/kernel/lib/power-management/include/lib/power-management/energy-model.h
void PowerDomainRegistry (UpdateCallback update_callback)
Constructs a power domain registry with the given optional callback. The
given callback may do nothing, but it may not be nullptr.
Defined at line 618 of file ../../zircon/kernel/lib/power-management/include/lib/power-management/energy-model.h
PowerDomain * Find (uint32_t domain_id)
Returns a reference to the power domain with the given domain id, or
nullptr if one does not exist.
Defined at line 633 of file ../../zircon/kernel/lib/power-management/include/lib/power-management/energy-model.h
template <typename Visitor>
void Visit (Visitor && visitor)
Visits each registered power domain.
Defined at line 639 of file ../../zircon/kernel/lib/power-management/include/lib/power-management/energy-model.h
const PowerDomainSet & power_domain_set ()
Defined at line 643 of file ../../zircon/kernel/lib/power-management/include/lib/power-management/energy-model.h