hwmon_pmu__new(9)
β¨ NAME β¨
okay bestie, this is hwmon_pmu__new(9) from the Kernel API Manual β and it's literally here to allocate and construct a hwmon PMU. iconic behavior, no cap. π
β¨ SYNOPSIS β¨
struct perf_pmu * hwmon_pmu__new (struct list_head *pmus , const char
*hwmon_dir , const char *sysfs_name , const char *name );
β¨ ARGUMENTS β¨
pmusβ the list of PMUs that get added to. yes, the whole squad. π«Άhwmon_dirβ the path to a hwmon directory.sysfs_nameβ name of the hwmon sysfs directory, likehwmon0.nameβ the contents of thenamefile in the hwmon directory. the actual name-file vibe. π
β¨ DESCRIPTION β¨
Exposed for testing, fr fr. Regular construction should happen via perf_pmus__read_hwmon_pmus. that's the main character route, bestie. π
β¨ SEE ALSO β¨
Kernel file ./tools/perf/util/hwmon_pmu.h plus the whole crew: enum hwmon_type(9), enum hwmon_item(9), union hwmon_pmu_event_key(9), parse_hwmon_filename(9). go off, sysfs besties. π
mwah π that's the whole page β source/version is ./tools/perf/util, dated October 2026. slay and stay iconic. β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms