commit | 16805a6ace4c01c5c907407a3ecfb90df24d079a | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Fri Jun 21 14:19:33 2019 -0700 |
committer | Patrick Venture <venture@google.com> | Mon Jun 24 10:36:26 2019 -0700 |
tree | 71b514e3801cbeb3531fe030e6d38ab1aa371d58 | |
parent | 0cd4f69fa663a064f917672b5649da0aae75f86d [diff] |
mainloop: Make HwmonIO injectable dependency HwmonIO was make into a interface object implementation. This patch transitions mainloop to receive a pointer to this interface to allow for injection testing. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Iaa470fafccb42c4d7fbabac0dc92f96c8075faf2
Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture
To build this package, do the following steps: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make To clean the repository run `./bootstrap.sh clean`.
To enable the use of Linux features like cgroups prioritization and udev/systemd control, one instance of phosphor-hwmon is intended to be run per hwmon sysfs class instance. This requires an algorithm for selecting a stable, well-known D-Bus busname. The algorithm is <PREFIX>-<ID>.Hwmon<N> where PREFIX is an autoconf configurable prefix (BUSNAME_PREFIX, xyz.openbmc_project by default), ID is a std::hash of the /sys/devices path backing the hwmon class instance, and N is the implemented phosphor-hwmon D-Bus API version.