commit | 685efa165adc20d480e4c4994d62d62cd1e2f2d6 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Fri Oct 12 18:00:13 2018 -0700 |
committer | Patrick Venture <venture@google.com> | Fri Oct 12 18:01:11 2018 -0700 |
tree | 596617e03e5009ea8ec3c11618218dab53e29aeb | |
parent | b28f432a3fdb96c634e93ea27807daec59a941e7 [diff] |
cleanup: reduced scope of variables Cppcheck CI tool identified many variables whose scope could be reduced. Change-Id: I1478b5680adc560d08bc74ffc91929b1d19e24fa 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.