commit | 73a50c7f1cd02fca7cbc69e6304514157c59fa63 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Tue Apr 17 15:19:03 2018 -0700 |
committer | Patrick Venture <venture@google.com> | Wed Apr 18 14:06:11 2018 -0700 |
tree | 12bae0926bfaa853bb00e6b20775f6c5e30d3b1f | |
parent | caac77dc638377c67db15ca2db9d72d05076841b [diff] |
mainloop: Add some helpful comments Added a couple helpful comments that save someone from reading the code and thinking about it to know what it does. Change-Id: Ieac770e99fbd75a42be6803ee7959aba6ad6e96a 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.