commit | 9c43106c5e71e9cc9d8778d92c7b6377e6926d7a | [log] [tgz] |
---|---|---|
author | Matthew Barth <msbarth@us.ibm.com> | Mon May 07 13:55:29 2018 -0500 |
committer | Matthew Barth <msbarth@us.ibm.com> | Tue May 22 13:11:24 2018 -0500 |
tree | 074ff4417bce11749e39c9fdb4def6868bece496 | |
parent | 3786b8c369d15f6182f6fa5565e0485282329971 [diff] |
Add sensor object framework Create a sensor object to store sensor monitoring specifications. Tested: Sensor objects are created and stored for each sensor Change-Id: Idfa982f1bb8da888abbd473881870df4beec6824 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.