net/vmw_vsock/vsock_loopback.c
Source file repositories/reference/linux-study-clean/net/vmw_vsock/vsock_loopback.c
File Facts
- System
- Linux kernel
- Corpus path
net/vmw_vsock/vsock_loopback.c- Extension
.c- Size
- 5732 bytes
- Lines
- 190
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/spinlock.hlinux/module.hlinux/list.hlinux/virtio_vsock.h
Detected Declarations
struct vsock_loopbackfunction vsock_loopback_get_local_cidfunction vsock_loopback_send_pktfunction vsock_loopback_cancel_pktfunction vsock_loopback_stream_allowfunction vsock_loopback_msgzerocopy_allowfunction vsock_loopback_seqpacket_allowfunction vsock_loopback_workfunction vsock_loopback_initfunction vsock_loopback_exitmodule init vsock_loopback_init
Annotated Snippet
module_init(vsock_loopback_init);
module_exit(vsock_loopback_exit);
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Stefano Garzarella <sgarzare@redhat.com>");
MODULE_DESCRIPTION("loopback transport for vsock");
MODULE_ALIAS_NETPROTO(PF_VSOCK);
Annotation
- Immediate include surface: `linux/spinlock.h`, `linux/module.h`, `linux/list.h`, `linux/virtio_vsock.h`.
- Detected declarations: `struct vsock_loopback`, `function vsock_loopback_get_local_cid`, `function vsock_loopback_send_pkt`, `function vsock_loopback_cancel_pkt`, `function vsock_loopback_stream_allow`, `function vsock_loopback_msgzerocopy_allow`, `function vsock_loopback_seqpacket_allow`, `function vsock_loopback_work`, `function vsock_loopback_init`, `function vsock_loopback_exit`.
- 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.