commit | 09791857fd5322e558ca5238f55ec0f914140b5a | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Tue Apr 17 17:40:00 2018 -0700 |
committer | Patrick Venture <venture@google.com> | Wed Apr 18 14:25:59 2018 -0700 |
tree | 568d83925f974a2eae2653865251147b34d5ded1 | |
parent | a24c8808d5c3b13b849e79115a6969b5a8faf8b0 [diff] |
mainloop cleanup: moved getAttrs to hwmon namespace Moved the code that maps a sensor type to its dbus and hwmon components from mainloop to the hwmon namespace. Change-Id: I7963951c9484c02d17a3eb415906859609e0efd3 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.