net/netfilter/xt_hashlimit.c
Source file repositories/reference/linux-study-clean/net/netfilter/xt_hashlimit.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/xt_hashlimit.c- Extension
.c- Size
- 34972 bytes
- Lines
- 1337
- 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/module.hlinux/spinlock.hlinux/random.hlinux/jhash.hlinux/slab.hlinux/proc_fs.hlinux/seq_file.hlinux/list.hlinux/skbuff.hlinux/mm.hlinux/in.hlinux/ip.hlinux/ipv6.hnet/ipv6.hnet/net_namespace.hnet/netns/generic.hlinux/netfilter/x_tables.hlinux/netfilter_ipv4/ip_tables.hlinux/netfilter_ipv6/ip6_tables.hlinux/mutex.hlinux/kernel.hlinux/refcount.huapi/linux/netfilter/xt_hashlimit.h
Detected Declarations
struct hashlimit_netstruct dsthash_dststruct dsthash_entstruct xt_hashlimit_htablefunction cfg_copyfunction dst_cmpfunction hash_dstfunction dsthash_findfunction dsthash_alloc_initfunction dsthash_free_rcufunction dsthash_freefunction htable_createfunction htable_selective_cleanupfunction hlist_for_each_entry_safefunction htable_gcfunction htable_remove_proc_entryfunction hlist_for_each_entryfunction htable_putfunction xt_hashlimit_len_to_chunksfunction user2creditsfunction user2credits_bytefunction user2ratefunction user2rate_bytesfunction rateinfo_recalcfunction rateinfo_initfunction masklfunction hashlimit_ipv6_maskfunction hashlimit_init_dstfunction hashlimit_byte_costfunction hashlimit_mt_commonfunction hashlimit_mt_v1function hashlimit_mt_v2function hashlimit_mtfunction hashlimit_mt_check_commonfunction user2creditsfunction hashlimit_mt_check_v1function hashlimit_mt_check_v2function hashlimit_mt_checkfunction hashlimit_mt_destroy_v2function hashlimit_mt_destroy_v1function hashlimit_mt_destroyfunction dl_seq_stopfunction dl_seq_printfunction dl_seq_real_show_v2function dl_seq_real_show_v1function dl_seq_real_showfunction dl_seq_show_v2function dl_seq_show_v1
Annotated Snippet
module_init(hashlimit_mt_init);
module_exit(hashlimit_mt_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/spinlock.h`, `linux/random.h`, `linux/jhash.h`, `linux/slab.h`, `linux/proc_fs.h`, `linux/seq_file.h`, `linux/list.h`.
- Detected declarations: `struct hashlimit_net`, `struct dsthash_dst`, `struct dsthash_ent`, `struct xt_hashlimit_htable`, `function cfg_copy`, `function dst_cmp`, `function hash_dst`, `function dsthash_find`, `function dsthash_alloc_init`, `function dsthash_free_rcu`.
- 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.