commit | d0ce7925d77c56c142f64b2c6ae55f0020c06ba8 | [log] [tgz] |
---|---|---|
author | Matthew Barth <msbarth@us.ibm.com> | Thu Jun 06 09:23:37 2019 -0500 |
committer | Matthew Barth <msbarth@us.ibm.com> | Thu Jun 06 16:22:28 2019 -0500 |
tree | 368809b0d3c5cdad3a4da9c191036795815f0ff0 | |
parent | 5c014d2bb76f6f6d51aecf31bea95cb9ed9b1953 [diff] |
Emit signal and remove sensors from dbus When a sensor is configured to be removed upon certain return codes being returned when read, that sensor object should emit the proper signals and be removed from dbus. This may have previously been occurring but recently it was noticed that is not the case, so emit an object removed signal so the sensor object is removed from dbus and any applications subscribed to that sensor will be notified. Tested: For a sensor configured to be removed upon a rc, triggered that bad sensor read rc and used `busctl monitor` to see signals. Change-Id: Ia9557ea548bd5a00a9bd6fdf91d4aa91d8458225 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
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.