net/ipv6/inet6_connection_sock.c
Source file repositories/reference/linux-study-clean/net/ipv6/inet6_connection_sock.c
File Facts
- System
- Linux kernel
- Corpus path
net/ipv6/inet6_connection_sock.c- Extension
.c- Size
- 3582 bytes
- Lines
- 127
- 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/module.hlinux/in6.hlinux/ipv6.hlinux/jhash.hlinux/slab.hnet/addrconf.hnet/inet_connection_sock.hnet/inet_ecn.hnet/inet_hashtables.hnet/ip6_route.hnet/sock.hnet/inet6_connection_sock.hnet/sock_reuseport.h
Detected Declarations
function inet6_csk_xmitexport inet6_csk_xmit
Annotated Snippet
if (IS_ERR(dst)) {
WRITE_ONCE(sk->sk_err_soft, -PTR_ERR(dst));
sk->sk_route_caps = 0;
sk_skb_reason_drop(sk, skb,
SKB_DROP_REASON_IP_OUTNOROUTES);
return PTR_ERR(dst);
}
/* Restore final destination back after routing done */
fl6->daddr = sk->sk_v6_daddr;
}
rcu_read_lock();
skb_dst_set_noref(skb, dst);
res = ip6_xmit(sk, skb, fl6, sk->sk_mark, rcu_dereference(np->opt),
np->tclass, READ_ONCE(sk->sk_priority));
rcu_read_unlock();
return res;
}
EXPORT_SYMBOL_GPL(inet6_csk_xmit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/in6.h`, `linux/ipv6.h`, `linux/jhash.h`, `linux/slab.h`, `net/addrconf.h`, `net/inet_connection_sock.h`, `net/inet_ecn.h`.
- Detected declarations: `function inet6_csk_xmit`, `export inet6_csk_xmit`.
- 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.