drivers/platform/x86/lenovo/ideapad-laptop.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/lenovo/ideapad-laptop.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/lenovo/ideapad-laptop.c- Extension
.c- Size
- 66293 bytes
- Lines
- 2575
- 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/backlight.hlinux/bitfield.hlinux/bitops.hlinux/bug.hlinux/cleanup.hlinux/debugfs.hlinux/delay.hlinux/device.hlinux/dmi.hlinux/i8042.hlinux/init.hlinux/input.hlinux/input/sparse-keymap.hlinux/jiffies.hlinux/kernel.hlinux/leds.hlinux/module.hlinux/platform_device.hlinux/platform_profile.hlinux/power_supply.hlinux/rfkill.hlinux/seq_file.hlinux/string_choices.hlinux/sysfs.hlinux/types.hlinux/wmi.hideapad-laptop.hacpi/battery.hacpi/video.hdt-bindings/leds/common.h
Detected Declarations
struct ideapad_dytc_privstruct ideapad_rfk_privstruct ideapad_privatestruct ideapad_rfk_datastruct ideapad_wmi_privateenum ideapad_wmi_event_typefunction ideapad_shared_initfunction ideapad_shared_exitfunction modelsfunction eval_int_with_argfunction exec_simple_methodfunction eval_gbmdfunction exec_sbmcfunction eval_halsfunction exec_salsfunction exec_kblcfunction eval_kblcfunction eval_dytcfunction eval_vpcrfunction eval_vpcwfunction read_ec_datafunction write_ec_cmdfunction debugfs_status_showfunction scoped_guardfunction scoped_guardfunction debugfs_cfg_showfunction ideapad_debugfs_initfunction ideapad_debugfs_exitfunction camera_power_showfunction scoped_guardfunction camera_power_storefunction scoped_guardfunction show_conservation_mode_deprecation_warningfunction conservation_mode_showfunction scoped_guardfunction conservation_mode_storefunction fan_mode_showfunction scoped_guardfunction fan_mode_storefunction scoped_guardfunction ideapad_fn_lock_getfunction ideapad_fn_lock_setfunction ideapad_fn_lock_led_notifyfunction fn_lock_showfunction fn_lock_storefunction touchpad_showfunction scoped_guardfunction touchpad_store
Annotated Snippet
module_init(ideapad_laptop_init)
static void __exit ideapad_laptop_exit(void)
{
ideapad_wmi_driver_unregister();
platform_driver_unregister(&ideapad_acpi_driver);
}
module_exit(ideapad_laptop_exit)
MODULE_AUTHOR("David Woodhouse <dwmw2@infradead.org>");
MODULE_DESCRIPTION("IdeaPad ACPI Extras");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/backlight.h`, `linux/bitfield.h`, `linux/bitops.h`, `linux/bug.h`, `linux/cleanup.h`, `linux/debugfs.h`, `linux/delay.h`.
- Detected declarations: `struct ideapad_dytc_priv`, `struct ideapad_rfk_priv`, `struct ideapad_private`, `struct ideapad_rfk_data`, `struct ideapad_wmi_private`, `enum ideapad_wmi_event_type`, `function ideapad_shared_init`, `function ideapad_shared_exit`, `function models`, `function eval_int_with_arg`.
- 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.