drivers/rpmsg/qcom_glink_rpm.c
Source file repositories/reference/linux-study-clean/drivers/rpmsg/qcom_glink_rpm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/rpmsg/qcom_glink_rpm.c- Extension
.c- Size
- 9350 bytes
- Lines
- 406
- Domain
- Driver Families
- Bucket
- drivers/rpmsg
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/idr.hlinux/interrupt.hlinux/io.hlinux/list.hlinux/mfd/syscon.hlinux/module.hlinux/of.hlinux/of_address.hlinux/of_irq.hlinux/platform_device.hlinux/regmap.hlinux/rpmsg.hlinux/slab.hlinux/workqueue.hlinux/mailbox_client.hrpmsg_internal.hqcom_glink_native.h
Detected Declarations
struct rpm_toc_entrystruct rpm_tocstruct glink_rpm_pipestruct glink_rpmfunction glink_rpm_rx_availfunction glink_rpm_rx_peekfunction glink_rpm_rx_advancefunction glink_rpm_tx_availfunction glink_rpm_tx_write_onefunction glink_rpm_tx_writefunction glink_rpm_tx_kickfunction qcom_glink_rpm_intrfunction glink_rpm_parse_tocfunction glink_rpm_probefunction glink_rpm_removefunction glink_rpm_initfunction glink_rpm_exitmodule init glink_rpm_init
Annotated Snippet
subsys_initcall(glink_rpm_init);
static void __exit glink_rpm_exit(void)
{
platform_driver_unregister(&glink_rpm_driver);
}
module_exit(glink_rpm_exit);
MODULE_AUTHOR("Bjorn Andersson <bjorn.andersson@linaro.org>");
MODULE_DESCRIPTION("Qualcomm GLINK RPM driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/idr.h`, `linux/interrupt.h`, `linux/io.h`, `linux/list.h`, `linux/mfd/syscon.h`, `linux/module.h`, `linux/of.h`, `linux/of_address.h`.
- Detected declarations: `struct rpm_toc_entry`, `struct rpm_toc`, `struct glink_rpm_pipe`, `struct glink_rpm`, `function glink_rpm_rx_avail`, `function glink_rpm_rx_peek`, `function glink_rpm_rx_advance`, `function glink_rpm_tx_avail`, `function glink_rpm_tx_write_one`, `function glink_rpm_tx_write`.
- Atlas domain: Driver Families / drivers/rpmsg.
- Implementation status: integration implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.