drivers/acpi/button.c
Source file repositories/reference/linux-study-clean/drivers/acpi/button.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/acpi/button.c- Extension
.c- Size
- 21764 bytes
- Lines
- 823
- Domain
- Driver Families
- Bucket
- drivers/acpi
- 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/compiler.hlinux/kernel.hlinux/module.hlinux/init.hlinux/types.hlinux/proc_fs.hlinux/seq_file.hlinux/input.hlinux/slab.hlinux/acpi.hlinux/dmi.hlinux/platform_device.hacpi/button.h
Detected Declarations
struct acpi_buttonfunction acpi_lid_evaluate_statefunction acpi_lid_notify_statefunction ktime_afterfunction acpi_button_state_seq_showfunction acpi_lid_add_fsfunction acpi_lid_remove_fsfunction devm_acpi_lid_add_fsfunction acpi_lid_savefunction acpi_lid_forgetfunction acpi_lid_openfunction acpi_lid_update_statefunction acpi_lid_initialize_statefunction acpi_lid_notifyfunction acpi_button_notifyfunction acpi_button_notify_runfunction acpi_button_eventfunction acpi_button_suspendfunction acpi_button_resumefunction acpi_lid_input_openfunction acpi_button_notify_handlerfunction acpi_button_wakeup_cleanupfunction devm_acpi_button_init_wakeupfunction acpi_button_remove_event_handlerfunction acpi_button_add_fixed_event_handlerfunction acpi_button_add_event_handlerfunction devm_acpi_button_add_event_handlerfunction acpi_button_probefunction acpi_button_removefunction param_set_lid_init_statefunction param_get_lid_init_statefunction acpi_button_initfunction acpi_button_exitmodule init acpi_button_initexport acpi_lid_open
Annotated Snippet
module_init(acpi_button_init);
module_exit(acpi_button_exit);
Annotation
- Immediate include surface: `linux/compiler.h`, `linux/kernel.h`, `linux/module.h`, `linux/init.h`, `linux/types.h`, `linux/proc_fs.h`, `linux/seq_file.h`, `linux/input.h`.
- Detected declarations: `struct acpi_button`, `function acpi_lid_evaluate_state`, `function acpi_lid_notify_state`, `function ktime_after`, `function acpi_button_state_seq_show`, `function acpi_lid_add_fs`, `function acpi_lid_remove_fs`, `function devm_acpi_lid_add_fs`, `function acpi_lid_save`, `function acpi_lid_forget`.
- Atlas domain: Driver Families / drivers/acpi.
- 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.