Expand description
Implementation of the On-Device Power Monitor (ODPM) module for Starnix.
This module registers an Industrial I/O (IIO) device at /sys/devices/platform/cpm/cpm:ODPM/iio:device0
with a symlink under /sys/bus/iio/devices/iio:device0, exposing power rail energy measurements
from the Fuchsia ODPM FIDL service (fuchsia.hardware.google.odpm).
Structs§
- Odpm
Device - An ODPM device aggregating power rails.
- Odpm
Rail - A power rail monitored by ODPM.
Functions§
- odpm_
device_ init - Discovers ODPM rails and registers the ODPM sysfs device.
- register_
odpm_ device - Registers the ODPM device within sysfs at
/sys/devices/platform/cpm/cpm:ODPM/iio:device0and creates the symlink at/sys/bus/iio/devices/iio:device0.