drivers/platform/x86/acerhdf.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/acerhdf.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/acerhdf.c- Extension
.c- Size
- 23284 bytes
- Lines
- 772
- Domain
- Driver Families
- Bucket
- drivers/platform
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/dmi.hlinux/acpi.hlinux/thermal.hlinux/platform_device.h
Detected Declarations
struct fancmdstruct manualcmdstruct bios_settingsstruct ctrl_settingsfunction acerhdf_get_tempfunction acerhdf_get_fanstatefunction acerhdf_change_fanstatefunction acerhdf_check_paramfunction acerhdf_get_ec_tempfunction acerhdf_should_bindfunction acerhdf_revert_to_bios_modefunction acerhdf_enable_kernelmodefunction acerhdf_change_modefunction acerhdf_get_crit_tempfunction acerhdf_get_max_statefunction acerhdf_get_cur_statefunction acerhdf_set_cur_statefunction acerhdf_suspendfunction acerhdf_probefunction acerhdf_check_hardwarefunction acerhdf_register_platformfunction acerhdf_unregister_platformfunction acerhdf_register_thermalfunction acerhdf_unregister_thermalfunction acerhdf_initfunction acerhdf_exitfunction interval_set_uintmodule init acerhdf_init
Annotated Snippet
module_init(acerhdf_init);
module_exit(acerhdf_exit);
static int interval_set_uint(const char *val, const struct kernel_param *kp)
{
int ret;
ret = param_set_uint(val, kp);
if (ret)
return ret;
acerhdf_check_param(thz_dev);
return 0;
}
static const struct kernel_param_ops interval_ops = {
.set = interval_set_uint,
.get = param_get_uint,
};
module_param_cb(interval, &interval_ops, &interval, 0000);
MODULE_PARM_DESC(interval, "Polling interval of temperature check");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/dmi.h`, `linux/acpi.h`, `linux/thermal.h`, `linux/platform_device.h`.
- Detected declarations: `struct fancmd`, `struct manualcmd`, `struct bios_settings`, `struct ctrl_settings`, `function acerhdf_get_temp`, `function acerhdf_get_fanstate`, `function acerhdf_change_fanstate`, `function acerhdf_check_param`, `function acerhdf_get_ec_temp`, `function acerhdf_should_bind`.
- Atlas domain: Driver Families / drivers/platform.
- 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.