drivers/hwmon/nct6775-platform.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/nct6775-platform.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/nct6775-platform.c- Extension
.c- Size
- 42509 bytes
- Lines
- 1655
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/acpi.hlinux/dmi.hlinux/hwmon-sysfs.hlinux/hwmon-vid.hlinux/init.hlinux/io.hlinux/module.hlinux/platform_device.hlinux/regmap.hnct6775.h
Detected Declarations
struct nct6775_sio_dataenum sensor_accessfunction nct6775_asuswmi_evaluate_methodfunction nct6775_asuswmi_writefunction nct6775_asuswmi_readfunction superio_wmi_inbfunction superio_wmi_outbfunction superio_wmi_selectfunction superio_wmi_enterfunction superio_wmi_exitfunction superio_inbfunction superio_selectfunction superio_enterfunction superio_exitfunction nct6775_wmi_set_bankfunction nct6775_wmi_reg_readfunction nct6775_wmi_reg_writefunction nct6775_set_bankfunction nct6775_reg_readfunction nct6775_reg_writefunction nct6791_enable_io_mappingfunction nct6775_suspendfunction nct6775_resumefunction nct6775_check_fan_inputsfunction cpu0_vid_showfunction clear_caseopenfunction nct6775_other_is_visiblefunction nct6775_platform_probe_initfunction nct6775_platform_probefunction nct6775_findfunction acpi_bus_for_each_devfunction nct6775_determine_accessfunction sensors_nct6775_platform_initfunction sensors_nct6775_platform_exitmodule init sensors_nct6775_platform_init
Annotated Snippet
module_init(sensors_nct6775_platform_init);
module_exit(sensors_nct6775_platform_exit);
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/dmi.h`, `linux/hwmon-sysfs.h`, `linux/hwmon-vid.h`, `linux/init.h`, `linux/io.h`, `linux/module.h`, `linux/platform_device.h`.
- Detected declarations: `struct nct6775_sio_data`, `enum sensor_access`, `function nct6775_asuswmi_evaluate_method`, `function nct6775_asuswmi_write`, `function nct6775_asuswmi_read`, `function superio_wmi_inb`, `function superio_wmi_outb`, `function superio_wmi_select`, `function superio_wmi_enter`, `function superio_wmi_exit`.
- 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.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.