drivers/mailbox/mailbox-xgene-slimpro.c
Source file repositories/reference/linux-study-clean/drivers/mailbox/mailbox-xgene-slimpro.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mailbox/mailbox-xgene-slimpro.c- Extension
.c- Size
- 6595 bytes
- Lines
- 261
- Domain
- Driver Families
- Bucket
- drivers/mailbox
- 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/acpi.hlinux/delay.hlinux/interrupt.hlinux/io.hlinux/mailbox_controller.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/spinlock.h
Detected Declarations
struct slimpro_mbox_chanstruct slimpro_mboxfunction mb_chan_send_msgfunction mb_chan_recv_msgfunction mb_chan_status_ackfunction mb_chan_status_availfunction slimpro_mbox_irqfunction slimpro_mbox_send_datafunction slimpro_mbox_startupfunction slimpro_mbox_shutdownfunction slimpro_mbox_probefunction slimpro_mbox_initfunction slimpro_mbox_exitmodule init slimpro_mbox_init
Annotated Snippet
subsys_initcall(slimpro_mbox_init);
module_exit(slimpro_mbox_exit);
MODULE_DESCRIPTION("APM X-Gene SLIMpro Mailbox Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/io.h`, `linux/mailbox_controller.h`, `linux/module.h`, `linux/of.h`, `linux/platform_device.h`.
- Detected declarations: `struct slimpro_mbox_chan`, `struct slimpro_mbox`, `function mb_chan_send_msg`, `function mb_chan_recv_msg`, `function mb_chan_status_ack`, `function mb_chan_status_avail`, `function slimpro_mbox_irq`, `function slimpro_mbox_send_data`, `function slimpro_mbox_startup`, `function slimpro_mbox_shutdown`.
- Atlas domain: Driver Families / drivers/mailbox.
- 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.