net/9p/trans_virtio.c
Source file repositories/reference/linux-study-clean/net/9p/trans_virtio.c
File Facts
- System
- Linux kernel
- Corpus path
net/9p/trans_virtio.c- Extension
.c- Size
- 21356 bytes
- Lines
- 843
- 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.
- 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/errno.hlinux/kernel.hlinux/un.hlinux/uaccess.hlinux/inet.hlinux/file.hlinux/highmem.hlinux/slab.hnet/9p/9p.hlinux/fs_context.hnet/9p/client.hnet/9p/transport.hlinux/scatterlist.hlinux/swap.hlinux/virtio.hlinux/virtio_9p.htrans_common.h
Detected Declarations
struct virtio_chanfunction rest_of_pagefunction p9_virtio_closefunction req_donefunction pack_sg_listfunction p9_virtio_cancelfunction p9_virtio_cancelledfunction pack_sg_list_pfunction p9_virtio_requestfunction p9_get_mapped_pagesfunction handle_rerrorfunction p9_virtio_zc_requestfunction p9_mount_tag_showfunction p9_virtio_probefunction p9_virtio_createfunction p9_virtio_removefunction p9_virtio_initfunction p9_virtio_cleanupmodule init p9_virtio_init
Annotated Snippet
module_init(p9_virtio_init);
module_exit(p9_virtio_cleanup);
MODULE_ALIAS_9P("virtio");
MODULE_DEVICE_TABLE(virtio, id_table);
MODULE_AUTHOR("Eric Van Hensbergen <ericvh@gmail.com>");
MODULE_DESCRIPTION("Virtio 9p Transport");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/in.h`, `linux/module.h`, `linux/net.h`, `linux/ipv6.h`, `linux/errno.h`, `linux/kernel.h`, `linux/un.h`, `linux/uaccess.h`.
- Detected declarations: `struct virtio_chan`, `function rest_of_page`, `function p9_virtio_close`, `function req_done`, `function pack_sg_list`, `function p9_virtio_cancel`, `function p9_virtio_cancelled`, `function pack_sg_list_p`, `function p9_virtio_request`, `function p9_get_mapped_pages`.
- 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.
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.