commit | 8772ce3a3db037b4a5c11cec08b1c7adae30e7e1 | [log] [tgz] |
---|---|---|
author | Matthew Barth <msbarth@us.ibm.com> | Thu Mar 22 16:03:06 2018 -0500 |
committer | Matt Spinler <spinler@us.ibm.com> | Fri Apr 13 14:33:41 2018 +0000 |
tree | 6fdc59bbd4e022beeb43dc38822853cd88b22e83 | |
parent | d26e27748c2b614950d30ca85891de18c364da0a [diff] |
Remove sensors for given return codes A sensor defined to be removed for a given set of return codes is not added or is removed from dbus when any of those return codes are received while attempting to do a read. Tested: Sensor is not created when return code received Sensor is removed when return code received Change-Id: I095800dea943360c2990f395105c150e0eda6eb6 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Exposes generic hwmon entries as DBus objects.
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.