net/netfilter/nf_conncount.c
Source file repositories/reference/linux-study-clean/net/netfilter/nf_conncount.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/nf_conncount.c- Extension
.c- Size
- 19364 bytes
- Lines
- 775
- 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/in.hlinux/in6.hlinux/ip.hlinux/ipv6.hlinux/jhash.hlinux/slab.hlinux/list.hlinux/rbtree.hlinux/module.hlinux/random.hlinux/skbuff.hlinux/spinlock.hlinux/netfilter/nf_conntrack_tcp.hlinux/netfilter/x_tables.hnet/netfilter/nf_conntrack.hnet/netfilter/nf_conntrack_count.hnet/netfilter/nf_conntrack_core.hnet/netfilter/nf_conntrack_tuple.hnet/netfilter/nf_conntrack_zones.h
Detected Declarations
struct nf_conncount_tuplestruct nf_conncount_rbstruct nf_conncount_rootstruct nf_conncount_datafunction already_closedfunction key_difffunction conn_freefunction find_or_evictfunction get_ct_or_tuple_from_skbfunction __nf_conncount_addfunction nf_conncount_add_skbfunction nf_conncount_list_initfunction __nf_conncount_gc_listfunction list_for_each_entry_safefunction nf_conncount_gc_listfunction __tree_nodes_freefunction tree_nodes_freefunction schedule_gc_workerfunction insert_treefunction find_tree_nodefunction count_treefunction insert_treefunction tree_gc_workerfunction nf_conncount_count_skbfunction nf_conncount_root_initfunction nf_conncount_cache_freefunction destroy_treefunction nf_conncount_destroyfunction nf_conncount_modinitfunction nf_conncount_modexitmodule init nf_conncount_modinitexport nf_conncount_add_skbexport nf_conncount_list_initexport nf_conncount_gc_listexport nf_conncount_count_skbexport nf_conncount_initexport nf_conncount_cache_freeexport nf_conncount_destroy
Annotated Snippet
module_init(nf_conncount_modinit);
module_exit(nf_conncount_modexit);
MODULE_AUTHOR("Jan Engelhardt <jengelh@medozas.de>");
MODULE_AUTHOR("Florian Westphal <fw@strlen.de>");
MODULE_DESCRIPTION("netfilter: count number of connections matching a key");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/in.h`, `linux/in6.h`, `linux/ip.h`, `linux/ipv6.h`, `linux/jhash.h`, `linux/slab.h`, `linux/list.h`, `linux/rbtree.h`.
- Detected declarations: `struct nf_conncount_tuple`, `struct nf_conncount_rb`, `struct nf_conncount_root`, `struct nf_conncount_data`, `function already_closed`, `function key_diff`, `function conn_free`, `function find_or_evict`, `function get_ct_or_tuple_from_skb`, `function __nf_conncount_add`.
- 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.