commit | c897d8bb66ff98882a5f5c4df5afb94d678f61d4 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Mon Apr 23 19:01:56 2018 -0700 |
committer | Patrick Venture <venture@google.com> | Mon May 07 08:52:55 2018 -0700 |
tree | abc06ff0083b21be7bf4d8906a52f892af89368d | |
parent | 0b3050582046e509d517360c413a6f90ca7d9b3a [diff] |
mainloop: add uniqueness to busname There can be multiple daemon instances that have the same devpath which leads to a collision which errors silently. This adds uniqueness to the path, which was no longer human-readable to avoid this collision situation. Tested: Ran on quanta-q71l with unique devices and two instances pointing to the same device and it correctly set them up with unique but deterministic bus names. Change-Id: Id5aea3c3df5f793b28557a74995608ec40792a43 Signed-off-by: Patrick Venture <venture@google.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.