commit | c1cece76a0d0054b705a7f05c8500fecdfb8c5e8 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Tue Nov 07 12:09:49 2017 -0800 |
committer | Patrick Venture <venture@google.com> | Fri Mar 30 14:44:06 2018 +0000 |
tree | fede075880e005c2b9c13e9d2397162107699f75 | |
parent | a23babd6952cb21397d6aa408a827047d1de81de [diff] |
Add configure option for how read fails behave Different platforms have different requirements for handling hwmon sysfs access failures. The default behavior is that a read failure leads to the daemon exiting after some number of read failures. This can be controlled to then remove the object from the dbus on failure. Now, it can instead be controlled to return -errno on read failure. This new behavior to set the value to -errno must be checked by whatever mechanism is reporting the value. Change-Id: I50b93aea56f22267da79c9571319f281e24a1e6f Signed-off-by: Patrick Venture <venture@google.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 full clean the repository again 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.