drivers/hwmon/asc7621.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/asc7621.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/asc7621.c- Extension
.c- Size
- 35049 bytes
- Lines
- 1232
- 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/i2c.hlinux/hwmon.hlinux/hwmon-sysfs.hlinux/err.hlinux/mutex.h
Detected Declarations
struct asc7621_chipstruct asc7621_datastruct asc7621_paramenum asc7621_typefunction read_bytefunction write_bytefunction show_u8function store_u8function show_bitmaskfunction store_bitmaskfunction show_fan16function store_fan16function show_in10function show_in8function store_in8function show_temp8function store_temp8function show_temp10function show_temp62function store_temp62function show_ap2_tempfunction store_ap2_tempfunction show_pwm_acfunction store_pwm_acfunction show_pwm_enablefunction store_pwm_enablefunction show_pwm_freqfunction store_pwm_freqfunction show_pwm_astfunction store_pwm_astfunction show_temp_stfunction store_temp_stfunction VAAfunction valid_address_for_chipfunction asc7621_init_clientfunction asc7621_probefunction asc7621_detectfunction asc7621_removefunction sm_asc7621_initfunction sm_asc7621_exitmodule init sm_asc7621_init
Annotated Snippet
module_init(sm_asc7621_init);
module_exit(sm_asc7621_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/slab.h`, `linux/jiffies.h`, `linux/i2c.h`, `linux/hwmon.h`, `linux/hwmon-sysfs.h`, `linux/err.h`.
- Detected declarations: `struct asc7621_chip`, `struct asc7621_data`, `struct asc7621_param`, `enum asc7621_type`, `function read_byte`, `function write_byte`, `function show_u8`, `function store_u8`, `function show_bitmask`, `function store_bitmask`.
- 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.