hwmon_pmu__new(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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, like hwmon0.
  • name β€” the contents of the name file 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