commit | 2864b0637f6a826dd2919e533100f9c18afda1cd | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Wed Dec 19 08:13:41 2018 -0800 |
committer | Patrick Venture <venture@google.com> | Wed Dec 19 08:43:56 2018 -0800 |
tree | 60f0b5362cfeb53d8cecc5085637c4ed6416bd8a | |
parent | 5a842c3e3931993bcb184300b289c8a82ecd6322 [diff] |
sensor: to enable testing receive hwmonio interface pointer The sensor objects all share a reference to the mainloop's ioAccess object. To enable testing, the sensor object needs to expect the base pointer to this object. Change-Id: I1d7f2841528776c8d4f1166e20874ddeb4b8554a 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.