drivers/soc/qcom/pmic_glink.c
Source file repositories/reference/linux-study-clean/drivers/soc/qcom/pmic_glink.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/soc/qcom/pmic_glink.c- Extension
.c- Size
- 11287 bytes
- Lines
- 450
- Domain
- Driver Families
- Bucket
- drivers/soc
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/auxiliary_bus.hlinux/cleanup.hlinux/delay.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/rpmsg.hlinux/slab.hlinux/soc/qcom/pdr.hlinux/soc/qcom/pmic_glink.hlinux/spinlock.h
Detected Declarations
struct pmic_glink_datastruct pmic_glinkstruct pmic_glink_clientfunction _devm_pmic_glink_release_clientfunction voidfunction pmic_glink_client_registerfunction pmic_glink_sendfunction pmic_glink_rpmsg_callbackfunction pmic_glink_aux_releasefunction pmic_glink_add_aux_devicefunction pmic_glink_del_aux_devicefunction pmic_glink_state_notify_clientsfunction pmic_glink_pdr_callbackfunction pmic_glink_rpmsg_probefunction pmic_glink_rpmsg_removefunction pmic_glink_probefunction pmic_glink_removefunction pmic_glink_initfunction pmic_glink_exitmodule init pmic_glink_initexport devm_pmic_glink_client_allocexport pmic_glink_client_registerexport pmic_glink_send
Annotated Snippet
module_init(pmic_glink_init);
static void pmic_glink_exit(void)
{
unregister_rpmsg_driver(&pmic_glink_rpmsg_driver);
platform_driver_unregister(&pmic_glink_driver);
}
module_exit(pmic_glink_exit);
MODULE_DESCRIPTION("Qualcomm PMIC GLINK driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/auxiliary_bus.h`, `linux/cleanup.h`, `linux/delay.h`, `linux/module.h`, `linux/of.h`, `linux/platform_device.h`, `linux/rpmsg.h`, `linux/slab.h`.
- Detected declarations: `struct pmic_glink_data`, `struct pmic_glink`, `struct pmic_glink_client`, `function _devm_pmic_glink_release_client`, `function void`, `function pmic_glink_client_register`, `function pmic_glink_send`, `function pmic_glink_rpmsg_callback`, `function pmic_glink_aux_release`, `function pmic_glink_add_aux_device`.
- Atlas domain: Driver Families / drivers/soc.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.