drivers/platform/surface/surface_acpi_notify.c
Source file repositories/reference/linux-study-clean/drivers/platform/surface/surface_acpi_notify.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/surface/surface_acpi_notify.c- Extension
.c- Size
- 22883 bytes
- Lines
- 885
- 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/unaligned.hlinux/acpi.hlinux/delay.hlinux/jiffies.hlinux/kernel.hlinux/module.hlinux/notifier.hlinux/platform_device.hlinux/rwsem.hlinux/surface_aggregator/controller.hlinux/surface_acpi_notify.h
Detected Declarations
struct san_datastruct san_rqsg_ifstruct san_event_workstruct gsb_data_instruct gsb_data_rqsxstruct gsb_data_etwlstruct gsb_data_outstruct gsb_bufferenum san_dsm_event_fnenum sam_event_cid_batenum sam_event_cid_tmpenum san_gsb_request_cvfunction san_set_rqsg_interface_devicefunction san_client_linkfunction san_dgpu_notifier_registerfunction san_dgpu_notifier_unregisterfunction san_dgpu_notifier_callfunction san_acpi_notify_eventfunction san_evt_bat_adpfunction san_evt_bat_bixfunction san_evt_bat_bstfunction san_evt_bat_dptffunction san_evt_bat_delayfunction san_evt_batfunction san_evt_bat_workfnfunction san_evt_bat_nffunction san_evt_tmp_tripfunction san_evt_tmpfunction san_evt_tmp_nffunction san_etwlfunction gsb_rqsx_response_errorfunction gsb_rqsx_response_successfunction san_rqst_fixup_suspendedfunction san_rqstfunction san_rqsgfunction san_opreg_handlerfunction san_events_registerfunction san_events_unregisterfunction san_consumer_setupfunction san_consumer_links_setupfunction san_probefunction san_removefunction san_initfunction san_exitmodule init san_initexport san_client_linkexport san_dgpu_notifier_registerexport san_dgpu_notifier_unregister
Annotated Snippet
module_init(san_init);
static void __exit san_exit(void)
{
platform_driver_unregister(&surface_acpi_notify);
destroy_workqueue(san_wq);
}
module_exit(san_exit);
MODULE_AUTHOR("Maximilian Luz <luzmaximilian@gmail.com>");
MODULE_DESCRIPTION("Surface ACPI Notify driver for Surface System Aggregator Module");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/unaligned.h`, `linux/acpi.h`, `linux/delay.h`, `linux/jiffies.h`, `linux/kernel.h`, `linux/module.h`, `linux/notifier.h`, `linux/platform_device.h`.
- Detected declarations: `struct san_data`, `struct san_rqsg_if`, `struct san_event_work`, `struct gsb_data_in`, `struct gsb_data_rqsx`, `struct gsb_data_etwl`, `struct gsb_data_out`, `struct gsb_buffer`, `enum san_dsm_event_fn`, `enum sam_event_cid_bat`.
- 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.