net/9p/trans_rdma.c
Source file repositories/reference/linux-study-clean/net/9p/trans_rdma.c
File Facts
- System
- Linux kernel
- Corpus path
net/9p/trans_rdma.c- Extension
.c- Size
- 17322 bytes
- Lines
- 685
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- 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.
- 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/in.hlinux/module.hlinux/net.hlinux/ipv6.hlinux/kthread.hlinux/errno.hlinux/kernel.hlinux/un.hlinux/uaccess.hlinux/inet.hlinux/file.hlinux/fs_context.hlinux/semaphore.hlinux/slab.hlinux/seq_file.hnet/9p/9p.hnet/9p/client.hnet/9p/transport.hrdma/ib_verbs.hrdma/rdma_cm.h
Detected Declarations
struct p9_trans_rdmastruct p9_rdma_reqstruct p9_rdma_contextfunction p9_rdma_show_optionsfunction p9_cm_event_handlerfunction recv_donefunction send_donefunction qp_event_handlerfunction rdma_destroy_transfunction post_recvfunction rdma_requestfunction post_recvfunction rdma_closefunction rdma_cancelfunction rdma_cancelledfunction p9_rdma_bind_privportfunction rdma_create_transfunction p9_trans_rdma_initfunction p9_trans_rdma_exitmodule init p9_trans_rdma_init
Annotated Snippet
module_init(p9_trans_rdma_init);
module_exit(p9_trans_rdma_exit);
MODULE_ALIAS_9P("rdma");
MODULE_AUTHOR("Tom Tucker <tom@opengridcomputing.com>");
MODULE_DESCRIPTION("RDMA Transport for 9P");
MODULE_LICENSE("Dual BSD/GPL");
Annotation
- Immediate include surface: `linux/in.h`, `linux/module.h`, `linux/net.h`, `linux/ipv6.h`, `linux/kthread.h`, `linux/errno.h`, `linux/kernel.h`, `linux/un.h`.
- Detected declarations: `struct p9_trans_rdma`, `struct p9_rdma_req`, `struct p9_rdma_context`, `function p9_rdma_show_options`, `function p9_cm_event_handler`, `function recv_done`, `function send_done`, `function qp_event_handler`, `function rdma_destroy_trans`, `function post_recv`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- 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.