drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h
Source file repositories/reference/linux-study-clean/drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h- Extension
.h- Size
- 3551 bytes
- Lines
- 147
- Domain
- Driver Families
- Bucket
- drivers/thermal
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
asm/ioctl.h
Detected Declarations
struct artstruct trtstruct psvt
Annotated Snippet
struct art {
acpi_handle source;
acpi_handle target;
struct_group(data,
u64 weight;
u64 ac0_max;
u64 ac1_max;
u64 ac2_max;
u64 ac3_max;
u64 ac4_max;
u64 ac5_max;
u64 ac6_max;
u64 ac7_max;
u64 ac8_max;
u64 ac9_max;
);
} __packed;
struct trt {
acpi_handle source;
acpi_handle target;
u64 influence;
u64 sample_period;
u64 reserved1;
u64 reserved2;
u64 reserved3;
u64 reserved4;
} __packed;
#define ACPI_NR_PSVT_ELEMENTS 12
#define ACPI_PSVT_CONTROL_KNOB 7
#define ACPI_LIMIT_STR_MAX_LEN 8
struct psvt {
acpi_handle source;
acpi_handle target;
u64 priority;
u64 sample_period;
u64 passive_temp;
u64 source_domain;
u64 control_knob;
union {
/* For limit_type = ACPI_TYPE_INTEGER */
u64 integer;
/* For limit_type = ACPI_TYPE_STRING */
char string[ACPI_LIMIT_STR_MAX_LEN];
char *str_ptr;
} limit;
u64 step_size;
u64 limit_coeff;
u64 unlimit_coeff;
/* Spec calls this field reserved, so we borrow it for type info */
u64 control_knob_type; /* ACPI_TYPE_STRING or ACPI_TYPE_INTEGER */
} __packed;
#define ACPI_NR_ART_ELEMENTS 13
/* for usrspace */
union art_object {
struct {
char source_device[8]; /* ACPI single name */
char target_device[8]; /* ACPI single name */
struct_group(data,
u64 weight;
u64 ac0_max_level;
u64 ac1_max_level;
u64 ac2_max_level;
u64 ac3_max_level;
u64 ac4_max_level;
u64 ac5_max_level;
u64 ac6_max_level;
u64 ac7_max_level;
u64 ac8_max_level;
u64 ac9_max_level;
);
};
u64 __data[ACPI_NR_ART_ELEMENTS];
};
union trt_object {
struct {
char source_device[8]; /* ACPI single name */
char target_device[8]; /* ACPI single name */
u64 influence;
u64 sample_period;
u64 reserved[4];
};
u64 __data[8];
};
union psvt_object {
Annotation
- Immediate include surface: `asm/ioctl.h`.
- Detected declarations: `struct art`, `struct trt`, `struct psvt`.
- Atlas domain: Driver Families / drivers/thermal.
- 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.