drivers/platform/x86/asus-laptop.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/asus-laptop.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/asus-laptop.c- Extension
.c- Size
- 52582 bytes
- Lines
- 1981
- 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/types.hlinux/err.hlinux/proc_fs.hlinux/backlight.hlinux/leds.hlinux/platform_device.hlinux/uaccess.hlinux/input.hlinux/input/sparse-keymap.hlinux/rfkill.hlinux/slab.hlinux/dmi.hlinux/acpi.hacpi/video.h
Detected Declarations
struct asus_ledstruct asus_rfkillstruct asus_laptopfunction write_acpi_int_retfunction write_acpi_intfunction acpi_check_handlefunction asus_check_pega_lucidfunction asus_pega_lucid_setfunction pega_acc_axisfunction pega_accel_pollfunction pega_accel_exitfunction pega_accel_initfunction asus_led_setfunction asus_led_cdev_setfunction asus_led_cdev_updatefunction asus_led_cdev_getfunction backlightfunction asus_kled_setfunction asus_kled_cdev_setfunction asus_kled_cdev_updatefunction asus_kled_cdev_getfunction asus_led_exitfunction asus_led_registerfunction asus_led_initfunction asus_read_brightnessfunction asus_set_brightnessfunction update_bl_statusfunction asus_backlight_notifyfunction asus_backlight_initfunction asus_backlight_exitfunction infos_showfunction sysfs_acpi_setfunction ledd_showfunction ledd_storefunction asus_wireless_statusfunction asus_wlan_setfunction wlan_showfunction wlan_storefunction asus_bluetooth_setfunction bluetooth_showfunction bluetooth_storefunction asus_wimax_setfunction wimax_showfunction wimax_storefunction asus_wwan_setfunction wwan_showfunction wwan_storefunction asus_set_display
Annotated Snippet
module_init(asus_laptop_init);
module_exit(asus_laptop_exit);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/init.h`, `linux/types.h`, `linux/err.h`, `linux/proc_fs.h`, `linux/backlight.h`, `linux/leds.h`.
- Detected declarations: `struct asus_led`, `struct asus_rfkill`, `struct asus_laptop`, `function write_acpi_int_ret`, `function write_acpi_int`, `function acpi_check_handle`, `function asus_check_pega_lucid`, `function asus_pega_lucid_set`, `function pega_acc_axis`, `function pega_accel_poll`.
- 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.