net/9p/trans_fd.c
Source file repositories/reference/linux-study-clean/net/9p/trans_fd.c
File Facts
- System
- Linux kernel
- Corpus path
net/9p/trans_fd.c- Extension
.c- Size
- 25954 bytes
- Lines
- 1094
- 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/in6.hlinux/module.hlinux/net.hlinux/ipv6.hlinux/kthread.hlinux/errno.hlinux/kernel.hlinux/un.hlinux/uaccess.hlinux/inet.hlinux/file.hlinux/fs_context.hlinux/slab.hlinux/seq_file.hnet/9p/9p.hnet/9p/client.hnet/9p/transport.hlinux/syscalls.h
Detected Declarations
struct p9_poll_waitstruct p9_connstruct p9_trans_fdfunction p9_mux_poll_stopfunction p9_conn_cancelfunction list_for_each_entry_safefunction list_for_each_entry_safefunction p9_fd_pollfunction p9_fd_readfunction p9_read_workfunction packetsfunction p9_fd_writefunction p9_write_workfunction p9_pollwakefunction p9_pollwaitfunction p9_conn_createfunction p9_poll_muxfunction p9_fd_requestfunction p9_fd_cancelfunction p9_fd_cancelledfunction p9_client_flushfunction p9_fd_show_optionsfunction p9_fd_openfunction p9_socket_openfunction p9_conn_destroyfunction p9_fd_closefunction p9_bind_privportfunction p9_fd_create_tcpfunction p9_fd_create_unixfunction p9_fd_createfunction p9_poll_workfnfunction p9_trans_fd_initfunction p9_trans_fd_exitmodule init p9_trans_fd_init
Annotated Snippet
module_init(p9_trans_fd_init);
module_exit(p9_trans_fd_exit);
MODULE_AUTHOR("Eric Van Hensbergen <ericvh@gmail.com>");
MODULE_DESCRIPTION("Filedescriptor Transport for 9P");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/in.h`, `linux/in6.h`, `linux/module.h`, `linux/net.h`, `linux/ipv6.h`, `linux/kthread.h`, `linux/errno.h`, `linux/kernel.h`.
- Detected declarations: `struct p9_poll_wait`, `struct p9_conn`, `struct p9_trans_fd`, `function p9_mux_poll_stop`, `function p9_conn_cancel`, `function list_for_each_entry_safe`, `function list_for_each_entry_safe`, `function p9_fd_poll`, `function p9_fd_read`, `function p9_read_work`.
- 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.