drivers/hwmon/i5k_amb.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/i5k_amb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/i5k_amb.c- Extension
.c- Size
- 15313 bytes
- Lines
- 601
- 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.
- 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/hwmon.hlinux/hwmon-sysfs.hlinux/err.hlinux/mutex.hlinux/log2.hlinux/pci.hlinux/platform_device.hlinux/slab.h
Detected Declarations
struct i5k_device_attributestruct i5k_amb_datafunction Copyrightfunction amb_reg_temp_minfunction amb_reg_temp_midfunction amb_reg_temp_maxfunction amb_reg_tempfunction amb_num_from_regfunction amb_read_bytefunction amb_write_bytefunction show_amb_alarmfunction store_amb_minfunction store_amb_midfunction store_amb_maxfunction show_amb_minfunction show_amb_midfunction show_amb_maxfunction show_amb_tempfunction show_labelfunction i5k_amb_hwmon_initfunction i5k_amb_addfunction i5k_find_amb_registersfunction i5k_channel_probefunction i5k_amb_probefunction i5k_amb_removefunction i5k_amb_initfunction i5k_amb_exitmodule init i5k_amb_init
Annotated Snippet
module_init(i5k_amb_init);
module_exit(i5k_amb_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/hwmon.h`, `linux/hwmon-sysfs.h`, `linux/err.h`, `linux/mutex.h`, `linux/log2.h`, `linux/pci.h`, `linux/platform_device.h`.
- Detected declarations: `struct i5k_device_attribute`, `struct i5k_amb_data`, `function Copyright`, `function amb_reg_temp_min`, `function amb_reg_temp_mid`, `function amb_reg_temp_max`, `function amb_reg_temp`, `function amb_num_from_reg`, `function amb_read_byte`, `function amb_write_byte`.
- Atlas domain: Driver Families / drivers/hwmon.
- Implementation status: integration 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.