net/rds/tcp.c
Source file repositories/reference/linux-study-clean/net/rds/tcp.c
File Facts
- System
- Linux kernel
- Corpus path
net/rds/tcp.c- Extension
.c- Size
- 22805 bytes
- Lines
- 801
- 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.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- 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/kernel.hlinux/slab.hlinux/in.hlinux/module.hnet/tcp.hnet/net_namespace.hnet/netns/generic.hnet/addrconf.hrds.htcp.h
Detected Declarations
function rds_tcp_write_seqfunction rds_tcp_snd_unafunction rds_tcp_restore_callbacksfunction rds_tcp_reset_callbacksfunction rds_tcp_set_callbacksfunction rds_tcp_tc_infofunction list_for_each_entryfunction rds6_tcp_tc_infofunction list_for_each_entryfunction rds_tcp_laddr_checkfunction rds_tcp_conn_freefunction rds_tcp_conn_allocfunction list_has_connfunction list_for_each_entry_safefunction rds_tcp_set_unloadingfunction rds_tcp_is_unloadingfunction rds_tcp_destroy_connsfunction rds_tcp_get_tos_mapfunction rds_tcp_tunefunction rds_tcp_accept_workerfunction rds_tcp_accept_workfunction rds_tcp_init_netfunction rds_tcp_kill_sockfunction rds_tcp_exit_netfunction rds_tcp_sysctl_resetfunction rds_tcp_skbuf_handlerfunction rds_tcp_sndbuf_handlerfunction rds_tcp_rcvbuf_handlerfunction rds_tcp_exitfunction rds_tcp_initmodule init rds_tcp_init
Annotated Snippet
module_init(rds_tcp_init);
MODULE_AUTHOR("Oracle Corporation <rds-devel@oss.oracle.com>");
MODULE_DESCRIPTION("RDS: TCP transport");
MODULE_LICENSE("Dual BSD/GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/slab.h`, `linux/in.h`, `linux/module.h`, `net/tcp.h`, `net/net_namespace.h`, `net/netns/generic.h`, `net/addrconf.h`.
- Detected declarations: `function rds_tcp_write_seq`, `function rds_tcp_snd_una`, `function rds_tcp_restore_callbacks`, `function rds_tcp_reset_callbacks`, `function rds_tcp_set_callbacks`, `function rds_tcp_tc_info`, `function list_for_each_entry`, `function rds6_tcp_tc_info`, `function list_for_each_entry`, `function rds_tcp_laddr_check`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
- 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.