commit | 501ade24fb8eaa8112fb2c267727888fd5ac685c | [log] [tgz] |
---|---|---|
author | Kun Yi <kunyi731@gmail.com> | Mon Jul 15 15:00:32 2019 -0700 |
committer | Kun Yi <kunyi731@gmail.com> | Thu Jul 18 15:06:08 2019 -0700 |
tree | b6bd22e314c16a2f632425c1c630c2a71a7a0bd1 | |
parent | 553552c412633aa850ba88bf9261529b8f2386d1 [diff] |
[cleanup] mainloop: simplify with structured bindings This somewhat avoids cryptic names when looping through maps. Still doesn't help with type checking which can be fixed later. Signed-off-by: Kun Yi <kunyi731@gmail.com> Change-Id: Iee69605211580e2f95005480bae2812ef1bc0d09
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.