commit | 75e56c67a10e9f4c617f9c72a87deb695322e212 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Fri Apr 20 18:10:15 2018 -0700 |
committer | Patrick Venture <venture@google.com> | Tue Apr 24 20:46:07 2018 +0000 |
tree | 1cdef89f2efa1fc89c7dc737e00d39b51d92317a | |
parent | 609fe98205fe8f4bd0dc6b9fca66877e2edf186d [diff] |
hwmonio: split IoAccess object out Split out the hwmon io access object from the sysfs namespace into its own. Change-Id: I8d1a45630117d1d503d0d5fa6061163911b695e8 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.