commit | b798527cb8c3425f6ad26c68ca67456272e87afa | [log] [tgz] |
---|---|---|
author | Matthew Barth <msbarth@us.ibm.com> | Tue Apr 17 10:50:36 2018 -0500 |
committer | Matthew Barth <msbarth@us.ibm.com> | Mon Apr 23 13:15:44 2018 -0500 |
tree | 44169b48212bf552a35ce3765db24eba2ed7c17a | |
parent | 09791857fd5322e558ca5238f55ec0f914140b5a [diff] |
Check for empty return code list on adding Move the check for an empty return code list for sensor removal to within the function that adds the return codes per sensor. This eliminates the need to check for an empty return code list prior to calling this function. Tested: Empty return code sensor removal list is handled Change-Id: Icdf3692cd79b3198d90ad8c0688104e4a8040186 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.