drivers/hwmon/sch56xx-common.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/sch56xx-common.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/sch56xx-common.c- Extension
.c- Size
- 16124 bytes
- Lines
- 651
- 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/platform_device.hlinux/regmap.hlinux/err.hlinux/io.hlinux/acpi.hlinux/delay.hlinux/fs.hlinux/watchdog.hlinux/uaccess.hlinux/slab.hsch56xx-common.h
Detected Declarations
struct sch56xx_watchdog_datastruct sch56xx_bus_contextfunction superio_inbfunction superio_enterfunction superio_selectfunction superio_exitfunction sch56xx_send_cmdfunction sch56xx_read_virtual_regfunction sch56xx_write_virtual_regfunction sch56xx_read_virtual_reg16function sch56xx_read_virtual_reg12function sch56xx_regmap_read16function sch56xx_regmap_write16function sch56xx_reg_writefunction sch56xx_reg_readfunction sch56xx_free_contextfunction watchdog_set_timeoutfunction watchdog_startfunction watchdog_triggerfunction watchdog_stopfunction sch56xx_watchdog_registerfunction sch56xx_findfunction sch56xx_device_addfunction sch56xx_initfunction sch56xx_exitmodule init sch56xx_initexport sch56xx_read_virtual_regexport sch56xx_write_virtual_regexport sch56xx_read_virtual_reg16export sch56xx_read_virtual_reg12export sch56xx_regmap_read16export sch56xx_regmap_write16export devm_regmap_init_sch56xxexport sch56xx_watchdog_register
Annotated Snippet
module_init(sch56xx_init);
module_exit(sch56xx_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/platform_device.h`, `linux/regmap.h`, `linux/err.h`, `linux/io.h`, `linux/acpi.h`, `linux/delay.h`.
- Detected declarations: `struct sch56xx_watchdog_data`, `struct sch56xx_bus_context`, `function superio_inb`, `function superio_enter`, `function superio_select`, `function superio_exit`, `function sch56xx_send_cmd`, `function sch56xx_read_virtual_reg`, `function sch56xx_write_virtual_reg`, `function sch56xx_read_virtual_reg16`.
- 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.