tools/perf/util/hwmon_pmu.h
Source file repositories/reference/linux-study-clean/tools/perf/util/hwmon_pmu.h
File Facts
- System
- Linux kernel
- Corpus path
tools/perf/util/hwmon_pmu.h- Extension
.h- Size
- 4477 bytes
- Lines
- 168
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: implementation source
- Status
- source implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
pmu.hstdbool.h
Detected Declarations
struct list_headstruct perf_thread_mapenum hwmon_typeenum hwmon_item
Annotated Snippet
#ifndef __HWMON_PMU_H
#define __HWMON_PMU_H
#include "pmu.h"
#include <stdbool.h>
struct list_head;
struct perf_thread_map;
/**
* enum hwmon_type:
*
* As described in Documentation/hwmon/sysfs-interface.rst hwmon events are
* defined over multiple files of the form <type><num>_<item>. This enum
* captures potential <type> values.
*
* This enum is exposed for testing.
*/
enum hwmon_type {
HWMON_TYPE_NONE,
HWMON_TYPE_CPU,
HWMON_TYPE_CURR,
HWMON_TYPE_ENERGY,
HWMON_TYPE_FAN,
HWMON_TYPE_HUMIDITY,
HWMON_TYPE_IN,
HWMON_TYPE_INTRUSION,
HWMON_TYPE_POWER,
HWMON_TYPE_PWM,
HWMON_TYPE_TEMP,
HWMON_TYPE_MAX
};
/**
* enum hwmon_item:
*
* Similar to enum hwmon_type but describes the item part of a sysfs filename.
*
* This enum is exposed for testing.
*/
enum hwmon_item {
HWMON_ITEM_NONE,
HWMON_ITEM_ACCURACY,
HWMON_ITEM_ALARM,
HWMON_ITEM_AUTO_CHANNELS_TEMP,
HWMON_ITEM_AVERAGE,
HWMON_ITEM_AVERAGE_HIGHEST,
HWMON_ITEM_AVERAGE_INTERVAL,
HWMON_ITEM_AVERAGE_INTERVAL_MAX,
HWMON_ITEM_AVERAGE_INTERVAL_MIN,
HWMON_ITEM_AVERAGE_LOWEST,
HWMON_ITEM_AVERAGE_MAX,
HWMON_ITEM_AVERAGE_MIN,
HWMON_ITEM_BEEP,
HWMON_ITEM_CAP,
HWMON_ITEM_CAP_HYST,
HWMON_ITEM_CAP_MAX,
HWMON_ITEM_CAP_MIN,
HWMON_ITEM_CRIT,
HWMON_ITEM_CRIT_HYST,
HWMON_ITEM_DIV,
HWMON_ITEM_EMERGENCY,
HWMON_ITEM_EMERGENCY_HIST,
HWMON_ITEM_ENABLE,
HWMON_ITEM_FAULT,
HWMON_ITEM_FREQ,
HWMON_ITEM_HIGHEST,
HWMON_ITEM_INPUT,
HWMON_ITEM_LABEL,
HWMON_ITEM_LCRIT,
HWMON_ITEM_LCRIT_HYST,
HWMON_ITEM_LOWEST,
HWMON_ITEM_MAX,
HWMON_ITEM_MAX_HYST,
HWMON_ITEM_MIN,
HWMON_ITEM_MIN_HYST,
HWMON_ITEM_MOD,
HWMON_ITEM_OFFSET,
HWMON_ITEM_PULSES,
HWMON_ITEM_RATED_MAX,
HWMON_ITEM_RATED_MIN,
HWMON_ITEM_RESET_HISTORY,
HWMON_ITEM_TARGET,
HWMON_ITEM_TYPE,
HWMON_ITEM_VID,
HWMON_ITEM__MAX,
Annotation
- Immediate include surface: `pmu.h`, `stdbool.h`.
- Detected declarations: `struct list_head`, `struct perf_thread_map`, `enum hwmon_type`, `enum hwmon_item`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.