Skip to main content

Crate starnix_modules_odpm

Crate starnix_modules_odpm 

Source
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§

OdpmDevice
An ODPM device aggregating power rails.
OdpmRail
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:device0 and creates the symlink at /sys/bus/iio/devices/iio:device0.