Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
msl/ | H | - | - | 105 | 73 | |
subprojects/ | H | - | - | 36 | 26 | |
test/ | H | - | - | 645 | 466 | |
tools/ | H | - | - | 85 | 44 | |
.clang-format | H A D | 01-Feb-2025 | 3.7 KiB | 137 | 135 | |
.gitignore | H A D | 05-May-2021 | 25 | 3 | 2 | |
.lcovrc | H A D | 06-Mar-2019 | 80 | 4 | 3 | |
.shellcheck | HD | 13-Apr-2021 | 0 | |||
70-hwmon.rules | H A D | 03-Feb-2021 | 182 | 3 | 2 | |
70-iio.rules | H A D | 03-Feb-2021 | 178 | 3 | 2 | |
LICENSE | H A D | 20-Oct-2015 | 11.1 KiB | 203 | 169 | |
OWNERS | H A D | 22-Jul-2022 | 1.6 KiB | 49 | 44 | |
README.iio.md | H A D | 08-Dec-2022 | 732 | 14 | 10 | |
README.md | H A D | 08-Dec-2022 | 953 | 28 | 18 | |
average.cpp | H A D | 01-Feb-2025 | 1.4 KiB | 51 | 33 | |
average.hpp | H A D | 01-Feb-2025 | 2.4 KiB | 71 | 21 | |
env.cpp | H A D | 16-Dec-2024 | 799 | 33 | 11 | |
env.hpp | H A D | 21-Aug-2019 | 3 KiB | 124 | 59 | |
fan_pwm.cpp | H A D | 16-Aug-2024 | 1.3 KiB | 55 | 41 | |
fan_pwm.hpp | H A D | 22-Jul-2022 | 1.6 KiB | 62 | 29 | |
fan_speed.cpp | H A D | 20-Nov-2024 | 2.4 KiB | 83 | 66 | |
fan_speed.hpp | H A D | 22-Jul-2022 | 1.9 KiB | 69 | 30 | |
gpio_handle.cpp | H A D | 01-Feb-2025 | 1.5 KiB | 57 | 46 | |
gpio_handle.hpp | H A D | 01-Feb-2025 | 497 | 22 | 9 | |
hwmon.cpp | H A D | 04-Sep-2018 | 497 | 29 | 21 | |
hwmon.hpp | H A D | 16-Dec-2024 | 2.9 KiB | 101 | 75 | |
hwmonio.cpp | H A D | 10-May-2023 | 5.9 KiB | 226 | 129 | |
hwmonio.hpp | H A D | 16-Dec-2024 | 4.4 KiB | 138 | 57 | |
interface.hpp | H A D | 16-Dec-2024 | 1.9 KiB | 54 | 47 | |
mainloop.cpp | H A D | 01-Feb-2025 | 24.9 KiB | 703 | 505 | |
mainloop.hpp | H A D | 01-Feb-2025 | 5.1 KiB | 171 | 75 | |
meson.build | H A D | 01-Feb-2025 | 3.3 KiB | 137 | 118 | |
meson.options | H A D | 01-Feb-2025 | 1.1 KiB | 44 | 40 | |
phosphor-hwmon.conf | H A D | 03-Feb-2021 | 257 | 8 | 7 | |
readd.cpp | H A D | 16-Dec-2024 | 2.5 KiB | 91 | 57 | |
sensor.cpp | H A D | 01-Feb-2025 | 12 KiB | 379 | 279 | |
sensor.hpp | H A D | 01-Feb-2025 | 7.6 KiB | 249 | 85 | |
sensorset.cpp | H A D | 16-Dec-2024 | 1.5 KiB | 53 | 27 | |
sensorset.hpp | H A D | 16-Dec-2024 | 2 KiB | 73 | 29 | |
start_hwmon.sh.in | H A D | 22-Jul-2024 | 977 | 42 | 32 | |
sysfs.cpp | H A D | 16-Dec-2024 | 6.5 KiB | 243 | 165 | |
sysfs.hpp | H A D | 01-Feb-2025 | 2.3 KiB | 76 | 21 | |
targets.hpp | H A D | 16-Aug-2024 | 5 KiB | 178 | 130 | |
thresholds.hpp | H A D | 16-Dec-2024 | 6.2 KiB | 178 | 138 | |
types.hpp | H A D | 22-Jul-2022 | 399 | 16 | 12 | |
util.hpp | H A D | 16-Dec-2024 | 619 | 35 | 21 | |
xyz.openbmc_project.Hwmon@.service | H A D | 07-Apr-2022 | 323 | 11 | 9 |
README.iio.md
1# Phosphor OpenBMC and IIO devices 2 3Phosphor OpenBMC currently does not provide an IIO device to DBUS bridge in the 4same way that hwmon devices are bridged by the phosphor-hwmon-readd application. 5 6Until a daemon can be written, the hwmon-iio bridge driver can be used with the 7phosphor-hwmon-readd application, with the limitation that only a single iio 8channel can be configured per iio-hwmon platform instance. Typically device 9trees are setup with all the iio-channels under a single iio-hwmon platform 10device - doing this will result in undefined behavior from phosphor-hwmon-readd. 11 12If a true IIO bridging daemon becomes available in the future, 13phosphor-hwmon-readd will not support hwmon-iio bridge devices in any capacity. 14
README.md
1# phosphor-hwmon 2 3Exposes generic hwmon entries as DBus objects. More information can be found at 4[Sensor Architecture](https://github.com/openbmc/docs/blob/master/architecture/sensor-architecture.md) 5 6## To Build 7 8To build this package, do the following steps: 9 101. meson setup build 112. ninja -C build 12 13To clean the repository run `rm -rf build`. 14 15## D-Bus bus names 16 17To enable the use of Linux features like cgroups prioritization and udev/systemd 18control, one instance of phosphor-hwmon is intended to be run per hwmon sysfs 19class instance. 20 21This requires an algorithm for selecting a stable, well-known D-Bus busname. 22 23The algorithm is `<PREFIX>-<ID>.Hwmon<N>` where PREFIX is a meson configurable 24prefix (`BUSNAME_PREFIX=xyz.openbmc_project` by default), ID is either a 25`std::hash` of the `/sys/devices` path backing the hwmon class instance or 26provided suffix value from the command line, and N is the implemented 27phosphor-hwmon D-Bus API version. 28