Function omnisensor::sysfs::get_single_hwmon_dir
source · [−]Expand description
For cases where we expect exactly one .../hwmon/hwmonX
subdirectory of a given path.
This finds the one that’s there, ensures there aren’t any others, and returns it (including whatever original prefix was passed).