commit | cb3daafb5681ef8359563fb04d8545f2ecb83c92 | [log] [tgz] |
---|---|---|
author | Matthew Barth <msbarth@us.ibm.com> | Mon May 07 15:03:16 2018 -0500 |
committer | Matthew Barth <msbarth@us.ibm.com> | Thu May 24 10:25:32 2018 -0500 |
tree | f971131502deaece0a26c9444c7ece911f7834a8 | |
parent | 2e41b13f9ea27976a85abbbc5e3028fa258d16d2 [diff] |
Move value iface creation into sensor object Create the Sensor.Value interface for a sensor within the sensor object. Each sensor must have an input sysfs file to get a Value property on the Sensor.Value interface and be included by hwmon. Tested: No change in value interface creation for sensors Change-Id: I09b1c79142ba2a34424f5ec29f41d19a987c84e7 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.