include/net/netns/vsock.h
Source file repositories/reference/linux-study-clean/include/net/netns/vsock.h
File Facts
- System
- Linux kernel
- Corpus path
include/net/netns/vsock.h- Extension
.h- Size
- 556 bytes
- Lines
- 27
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: implementation source
- Status
- source 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.h
Detected Declarations
struct netns_vsockenum vsock_net_mode
Annotated Snippet
struct netns_vsock {
struct ctl_table_header *sysctl_hdr;
/* protected by the vsock_table_lock in af_vsock.c */
u32 port;
enum vsock_net_mode mode;
enum vsock_net_mode child_ns_mode;
/* 0 = unlocked, 1 = locked to global, 2 = locked to local */
int child_ns_mode_locked;
int g2h_fallback;
};
#endif /* __NET_NET_NAMESPACE_VSOCK_H */
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct netns_vsock`, `enum vsock_net_mode`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: source implementation candidate.
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.