commit | 0cd4f69fa663a064f917672b5649da0aae75f86d | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Fri Jun 21 13:39:40 2019 -0700 |
committer | Patrick Venture <venture@google.com> | Fri Jun 21 13:47:19 2019 -0700 |
tree | 10674ac2e64ac366765ee0e7395b7703c9b823da | |
parent | 3ebaa3e6de4a28ab5b19e357e5f334dd2cd54b86 [diff] |
mainloop: add helper methods for sensor removal Add a helper method that will remove from dbus sensors that are marked for removal and another helper method that will attempt to add sensors marked for removal back. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Iecb96045cc63d93f2896af9f6a8c2672ca8fcbb2
Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture
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.