drivers/platform/x86/dell/alienware-wmi-base.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/dell/alienware-wmi-base.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/dell/alienware-wmi-base.c- Extension
.c- Size
- 11277 bytes
- Lines
- 492
- 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.
- 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/cleanup.hlinux/module.hlinux/platform_device.hlinux/dmi.hlinux/leds.halienware-wmi.h
Detected Declarations
function dmi_matchedfunction alienware_wmi_commandfunction parse_rgbfunction zone_showfunction zone_storefunction zone00_showfunction zone00_storefunction zone01_showfunction zone01_storefunction zone02_showfunction zone02_storefunction zone03_showfunction zone03_storefunction attributefunction lighting_control_state_storefunction zone_attr_visiblefunction zone_group_visiblefunction Brightnessfunction global_led_getfunction alienfx_probefunction alienware_alienfx_removefunction alienware_alienfx_setupfunction alienware_wmi_initfunction alienware_wmi_exitmodule init alienware_wmi_init
Annotated Snippet
module_init(alienware_wmi_init);
static void __exit alienware_wmi_exit(void)
{
if (alienware_interface == WMAX)
alienware_wmax_wmi_exit();
else
alienware_legacy_wmi_exit();
platform_driver_unregister(&platform_driver);
}
module_exit(alienware_wmi_exit);
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/cleanup.h`, `linux/module.h`, `linux/platform_device.h`, `linux/dmi.h`, `linux/leds.h`, `alienware-wmi.h`.
- Detected declarations: `function dmi_matched`, `function alienware_wmi_command`, `function parse_rgb`, `function zone_show`, `function zone_store`, `function zone00_show`, `function zone00_store`, `function zone01_show`, `function zone01_store`, `function zone02_show`.
- 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.