commit | 0956017412c84ac2a264d44dbb3f201d2f6c96f1 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Sat Oct 13 13:25:15 2018 -0700 |
committer | Patrick Venture <venture@google.com> | Sat Oct 13 14:51:35 2018 -0700 |
tree | f412e496ea7fcd2165f4c659bd1b846ed9618af5 | |
parent | 685efa165adc20d480e4c4994d62d62cd1e2f2d6 [diff] |
sysfs: transition to std::find_if [sysfs.cpp:228]: (style) Consider using std::find_if algorithm instead of a raw loop. Change-Id: Ie07ca5e32405fc7d27e85936377cec44291d3f94 Signed-off-by: Patrick Venture <venture@google.com>
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.