class KernelPowerDomainRegistry

Defined at line 21 of file ../../zircon/kernel/lib/power-management/include/lib/power-management/kernel-registry.h

Manages a singleton instance of PowerDomainRegistry and the plumbing

necessary for the kernel environment.

Public Methods

zx::result<cpu_mask_t> UpdatePowerLevel (uint32_t domain_id, uint64_t controller_id, power_management::ControlInterface interface, uint64_t arg)

Updates the power level for the given domain. Returns the mask of CPUs that

should be rescheduled immediately after the update.

Defined at line 24 of file ../../zircon/kernel/lib/power-management/kernel-registry.cc

zx::result<fbl::RefPtr<PowerDomain>> Register (const fbl::RefPtr<PowerDomain> & domain)

Registers the given power domain, replacing the power domain with the same

domain id if necessary.

Defined at line 27 of file ../../zircon/kernel/lib/power-management/include/lib/power-management/kernel-registry.h

zx::result<fbl::RefPtr<PowerDomain>> Unregister (uint32_t domain_id)

Unregisters the power domain with the given domain id.

Defined at line 34 of file ../../zircon/kernel/lib/power-management/include/lib/power-management/kernel-registry.h

template <typename V>
void Visit (V && v)

Defined at line 46 of file ../../zircon/kernel/lib/power-management/include/lib/power-management/kernel-registry.h