drivers/platform/x86/topstar-laptop.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/topstar-laptop.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/topstar-laptop.c- Extension
.c- Size
- 9258 bytes
- Lines
- 409
- 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/kernel.hlinux/module.hlinux/init.hlinux/slab.hlinux/acpi.hlinux/dmi.hlinux/input.hlinux/input/sparse-keymap.hlinux/leds.hlinux/platform_device.h
Detected Declarations
struct topstar_laptopfunction topstar_led_getfunction topstar_led_setfunction FNCXfunction topstar_led_initfunction topstar_led_exitfunction topstar_input_notifyfunction topstar_input_initfunction topstar_input_exitfunction topstar_platform_initfunction topstar_platform_exitfunction topstar_acpi_fncx_switchfunction topstar_acpi_notifyfunction topstar_acpi_initfunction topstar_acpi_exitfunction dmi_led_workaroundfunction topstar_acpi_probefunction topstar_acpi_removefunction topstar_laptop_initfunction topstar_laptop_exitmodule init topstar_laptop_init
Annotated Snippet
module_init(topstar_laptop_init);
module_exit(topstar_laptop_exit);
MODULE_AUTHOR("Herton Ronaldo Krzesinski");
MODULE_AUTHOR("Guillaume Douézan-Grard");
MODULE_DESCRIPTION("Topstar Laptop ACPI Extras driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/init.h`, `linux/slab.h`, `linux/acpi.h`, `linux/dmi.h`, `linux/input.h`, `linux/input/sparse-keymap.h`.
- Detected declarations: `struct topstar_laptop`, `function topstar_led_get`, `function topstar_led_set`, `function FNCX`, `function topstar_led_init`, `function topstar_led_exit`, `function topstar_input_notify`, `function topstar_input_init`, `function topstar_input_exit`, `function topstar_platform_init`.
- 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.