hwmon to dbus relay

Clone this repo:

Branches

  1. 8df95be meson: Provide missing wrap files by Konstantin Aladyshev · 4 weeks ago master
  2. 6412993 prefer std::format over fmt by Patrick Williams · 2 months ago
  3. 47fb49a sensor: Implement sensor "PRIORITY" by Lakshmi Yadlapati · 6 months ago
  4. 58bd8ba build: use allowed over enabled by Patrick Williams · 5 months ago
  5. c8e818d clang-format: copy latest and re-format by Patrick Williams · 6 months ago

phosphor-hwmon

Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture

To Build

To build this package, do the following steps:

  1. meson setup build
  2. ninja -C build

To clean the repository run rm -rf build.

D-Bus bus names

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 a meson configurable prefix (BUSNAME_PREFIX=xyz.openbmc_project by default), ID is either a std::hash of the /sys/devices path backing the hwmon class instance or provided suffix value from the command line, and N is the implemented phosphor-hwmon D-Bus API version.