net/netfilter/ipvs/ip_vs_dh.c
Source file repositories/reference/linux-study-clean/net/netfilter/ipvs/ip_vs_dh.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/ipvs/ip_vs_dh.c- Extension
.c- Size
- 6329 bytes
- Lines
- 273
- 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/ip.hlinux/slab.hlinux/module.hlinux/kernel.hlinux/skbuff.hlinux/hash.hnet/ip_vs.h
Detected Declarations
struct ip_vs_dh_bucketstruct ip_vs_dh_statefunction ip_vs_dh_hashkeyfunction ip_vs_dh_getfunction ip_vs_dh_reassignfunction ip_vs_dh_flushfunction ip_vs_dh_init_svcfunction ip_vs_dh_done_svcfunction ip_vs_dh_dest_changedfunction is_overloadedfunction ip_vs_dh_schedulefunction ip_vs_dh_initfunction ip_vs_dh_cleanupmodule init ip_vs_dh_init
Annotated Snippet
module_init(ip_vs_dh_init);
module_exit(ip_vs_dh_cleanup);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("ipvs destination hashing scheduler");
Annotation
- Immediate include surface: `linux/ip.h`, `linux/slab.h`, `linux/module.h`, `linux/kernel.h`, `linux/skbuff.h`, `linux/hash.h`, `net/ip_vs.h`.
- Detected declarations: `struct ip_vs_dh_bucket`, `struct ip_vs_dh_state`, `function ip_vs_dh_hashkey`, `function ip_vs_dh_get`, `function ip_vs_dh_reassign`, `function ip_vs_dh_flush`, `function ip_vs_dh_init_svc`, `function ip_vs_dh_done_svc`, `function ip_vs_dh_dest_changed`, `function is_overloaded`.
- 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.