hwmonio: add underscore prefix to members

Add underscore prefix to members for hwmonio object.

Change-Id: Iab5aed5ddba3b1793bb16b0f1501a11ff95b7f35
Signed-off-by: Patrick Venture <venture@google.com>
2 files changed
tree: 94a55664b36bfff1fd66fb9741edc8e7c0241d58
  1. msl/
  2. test/
  3. tools/
  4. .clang-format
  5. .gitignore
  6. argument.cpp
  7. argument.hpp
  8. bootstrap.sh
  9. configure.ac
  10. env.cpp
  11. env.hpp
  12. fan_pwm.cpp
  13. fan_pwm.hpp
  14. fan_speed.cpp
  15. fan_speed.hpp
  16. gpio_handle.cpp
  17. gpio_handle.hpp
  18. hwmon.cpp
  19. hwmon.hpp
  20. hwmonio.cpp
  21. hwmonio.hpp
  22. interface.hpp
  23. LICENSE
  24. mainloop.cpp
  25. mainloop.hpp
  26. MAINTAINERS
  27. Makefile.am
  28. readd.cpp
  29. README.iio.md
  30. README.md
  31. sensor.cpp
  32. sensor.hpp
  33. sensorset.cpp
  34. sensorset.hpp
  35. sysfs.cpp
  36. sysfs.hpp
  37. targets.hpp
  38. thresholds.hpp
  39. types.hpp
  40. util.hpp
README.md

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. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To clean the repository run `./bootstrap.sh clean`.

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 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.