drivers/hwmon/pc87360.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/pc87360.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/pc87360.c- Extension
.c- Size
- 52132 bytes
- Lines
- 1806
- Domain
- Driver Families
- Bucket
- drivers/hwmon
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/init.hlinux/slab.hlinux/jiffies.hlinux/platform_device.hlinux/hwmon.hlinux/hwmon-sysfs.hlinux/hwmon-vid.hlinux/err.hlinux/mutex.hlinux/acpi.hlinux/io.h
Detected Declarations
struct pc87360_datafunction superio_outbfunction superio_inbfunction superio_exitfunction PWM_TO_REGfunction pc87360_read_valuefunction pc87360_write_valuefunction pc87360_autodivfunction in_input_showfunction in_status_showfunction in_min_showfunction in_min_storefunction in_max_showfunction in_max_storefunction registerfunction in_max_alarm_showfunction cpu0_vid_showfunction vrm_showfunction vrm_storefunction alarms_in_showfunction therm_input_showfunction therm_status_showfunction therm_min_showfunction therm_min_storefunction therm_max_showfunction therm_max_storefunction therm_crit_showfunction therm_crit_storefunction registerfunction therm_max_alarm_showfunction therm_crit_alarm_showfunction temp_input_showfunction temp_status_showfunction temp_min_showfunction temp_min_storefunction temp_max_showfunction temp_max_storefunction temp_crit_showfunction temp_crit_storefunction registerfunction temp_max_alarm_showfunction temp_crit_alarm_showfunction temp_fault_showfunction alarms_temp_showfunction fan_input_showfunction fan_status_showfunction fan_div_showfunction fan_min_show
Annotated Snippet
module_init(pc87360_init);
module_exit(pc87360_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/slab.h`, `linux/jiffies.h`, `linux/platform_device.h`, `linux/hwmon.h`, `linux/hwmon-sysfs.h`, `linux/hwmon-vid.h`.
- Detected declarations: `struct pc87360_data`, `function superio_outb`, `function superio_inb`, `function superio_exit`, `function PWM_TO_REG`, `function pc87360_read_value`, `function pc87360_write_value`, `function pc87360_autodiv`, `function in_input_show`, `function in_status_show`.
- Atlas domain: Driver Families / drivers/hwmon.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.