commit | 147b0337b36e58604fbdd517f71f97a4dae725c1 | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Mon Mar 05 12:07:46 2018 -0600 |
committer | Matt Spinler <spinler@us.ibm.com> | Wed Mar 07 13:16:15 2018 -0600 |
tree | 2a7c65ad82c18413816b4f9861bc110798070598 | |
parent | 626df17a5e2b7fecbdfa36045cdd19efda667f81 [diff] |
Find hwmon path based on input path type If the input path starts with /devices, find the hwmon path using the findHwmonFromDevPath function, otherwise use findHwmonFromOFPath. Also change the argument name to something more generic. Did not change the argument's short name so the service file isn't coupled to this change. Tested: Tested with both paths. Change-Id: I5feb8a897fc86117b102ce44584ed977282cb955 Signed-off-by: Matt Spinler <spinler@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 full clean the repository again 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.