drivers/hwmon/dell-smm-hwmon.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/dell-smm-hwmon.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/dell-smm-hwmon.c- Extension
.c- Size
- 42174 bytes
- Lines
- 1854
- 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.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- 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/acpi.hlinux/capability.hlinux/cpu.hlinux/ctype.hlinux/delay.hlinux/dmi.hlinux/err.hlinux/errno.hlinux/hwmon.hlinux/init.hlinux/kconfig.hlinux/kernel.hlinux/minmax.hlinux/module.hlinux/mutex.hlinux/platform_device.hlinux/proc_fs.hlinux/seq_file.hlinux/slab.hlinux/smp.hlinux/string.hlinux/thermal.hlinux/types.hlinux/uaccess.hlinux/wmi.hlinux/i8k.hlinux/unaligned.h
Detected Declarations
struct smm_regsstruct dell_smm_opsstruct dell_smm_datastruct dell_smm_cooling_datastruct i8k_config_datastruct i8k_fan_control_dataenum i8k_configsenum i8k_fan_controlsfunction i8k_smm_funcfunction i8k_smm_callfunction wmi_parse_registerfunction wmi_parse_responsefunction wmi_smm_callfunction dell_smm_callfunction i8k_get_fan_statusfunction i8k_get_fan_speedfunction _i8k_get_fan_typefunction i8k_get_fan_typefunction i8k_get_fan_nominal_speedfunction i8k_enable_fan_auto_modefunction speedfunction i8k_get_temp_typefunction _i8k_get_tempfunction i8k_get_tempfunction retryfunction dell_smm_get_signaturefunction i8k_get_fn_statusfunction i8k_get_power_statusfunction i8k_ioctlfunction i8k_proc_showfunction i8k_open_fsfunction i8k_exit_procfsfunction i8k_init_procfsfunction i8k_init_procfsfunction dell_smm_get_cur_statefunction dell_smm_set_cur_statefunction dell_smm_is_visiblefunction dell_smm_readfunction dell_smm_read_stringfunction dell_smm_writefunction dell_smm_init_cdevfunction dell_smm_init_hwmonfunction dell_smm_init_datafunction dell_smm_probefunction dell_smm_wmi_probefunction dell_smm_init_dmifunction dell_smm_legacy_checkfunction i8k_init
Annotated Snippet
module_init(i8k_init);
module_exit(i8k_exit);
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/capability.h`, `linux/cpu.h`, `linux/ctype.h`, `linux/delay.h`, `linux/dmi.h`, `linux/err.h`, `linux/errno.h`.
- Detected declarations: `struct smm_regs`, `struct dell_smm_ops`, `struct dell_smm_data`, `struct dell_smm_cooling_data`, `struct i8k_config_data`, `struct i8k_fan_control_data`, `enum i8k_configs`, `enum i8k_fan_controls`, `function i8k_smm_func`, `function i8k_smm_call`.
- Atlas domain: Driver Families / drivers/hwmon.
- Implementation status: integration implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
- 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.