drivers/platform/loongarch/loongson-laptop.c
Source file repositories/reference/linux-study-clean/drivers/platform/loongarch/loongson-laptop.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/loongarch/loongson-laptop.c- Extension
.c- Size
- 14814 bytes
- Lines
- 636
- 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/init.hlinux/kernel.hlinux/module.hlinux/acpi.hlinux/backlight.hlinux/device.hlinux/input.hlinux/input/sparse-keymap.hlinux/platform_device.hlinux/string.hlinux/types.hacpi/video.h
Detected Declarations
struct generic_sub_driverfunction acpi_evalffunction hotkey_status_getfunction dispatch_acpi_notifyfunction setup_acpi_notifyfunction loongson_hotkey_suspendfunction loongson_hotkey_resumefunction loongson_hotkey_probefunction hotkey_mapfunction hotkey_backlight_setfunction ec_get_brightnessfunction ec_set_brightnessfunction ec_backlight_levelfunction ec_backlight_set_powerfunction loongson_laptop_backlight_updatefunction loongson_laptop_get_brightnessfunction laptop_backlight_registerfunction event_initfunction event_notifyfunction generic_subdriver_initfunction generic_subdriver_exitfunction generic_acpi_laptop_initfunction generic_acpi_laptop_exitmodule init generic_acpi_laptop_init
Annotated Snippet
module_init(generic_acpi_laptop_init);
module_exit(generic_acpi_laptop_exit);
MODULE_AUTHOR("Jianmin Lv <lvjianmin@loongson.cn>");
MODULE_AUTHOR("Huacai Chen <chenhuacai@loongson.cn>");
MODULE_DESCRIPTION("Loongson Laptop/All-in-One ACPI Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/init.h`, `linux/kernel.h`, `linux/module.h`, `linux/acpi.h`, `linux/backlight.h`, `linux/device.h`, `linux/input.h`, `linux/input/sparse-keymap.h`.
- Detected declarations: `struct generic_sub_driver`, `function acpi_evalf`, `function hotkey_status_get`, `function dispatch_acpi_notify`, `function setup_acpi_notify`, `function loongson_hotkey_suspend`, `function loongson_hotkey_resume`, `function loongson_hotkey_probe`, `function hotkey_map`, `function hotkey_backlight_set`.
- 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.