net/netfilter/nft_ct.c
Source file repositories/reference/linux-study-clean/net/netfilter/nft_ct.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/nft_ct.c- Extension
.c- Size
- 34324 bytes
- Lines
- 1427
- 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/kernel.hlinux/init.hlinux/module.hlinux/netlink.hlinux/netfilter.hlinux/netfilter/nf_tables.hnet/netfilter/nf_tables_core.hnet/netfilter/nf_conntrack.hnet/netfilter/nf_conntrack_acct.hnet/netfilter/nf_conntrack_tuple.hnet/netfilter/nf_conntrack_helper.hnet/netfilter/nf_conntrack_ecache.hnet/netfilter/nf_conntrack_labels.hnet/netfilter/nf_conntrack_timeout.hnet/netfilter/nf_conntrack_l4proto.hnet/netfilter/nf_conntrack_expect.hnet/netfilter/nf_conntrack_seqadj.hnf_internals.h
Detected Declarations
struct nft_ct_helper_objstruct nft_ct_timeout_objstruct nft_ct_expect_objfunction nft_ct_get_eval_counterfunction nft_ct_get_evalfunction nft_ct_set_zone_evalfunction nft_ct_set_evalfunction nft_ct_tmpl_put_pcpufunction for_each_possible_cpufunction nft_ct_tmpl_alloc_pcpufunction for_each_possible_cpufunction __nft_ct_get_destroyfunction nft_ct_get_initfunction __nft_ct_set_destroyfunction nft_ct_set_initfunction nft_ct_get_destroyfunction nft_ct_set_destroyfunction nft_ct_get_dumpfunction nft_ct_set_dumpfunction nft_ct_select_opsfunction nft_notrack_evalfunction nft_ct_timeout_parse_policyfunction nft_ct_timeout_obj_evalfunction nft_ct_timeout_obj_initfunction nft_ct_timeout_obj_destroyfunction nft_ct_timeout_obj_dumpfunction nft_ct_helper_obj_initfunction nft_ct_helper_obj_destroyfunction nft_ct_helper_obj_evalfunction nft_ct_helper_obj_dumpfunction nft_ct_expect_obj_initfunction nft_ct_expect_obj_destroyfunction nft_ct_expect_obj_dumpfunction nft_ct_expect_obj_evalfunction nft_ct_module_initfunction nft_ct_module_exitmodule init nft_ct_module_init
Annotated Snippet
module_init(nft_ct_module_init);
module_exit(nft_ct_module_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Patrick McHardy <kaber@trash.net>");
MODULE_ALIAS_NFT_EXPR("ct");
MODULE_ALIAS_NFT_EXPR("notrack");
MODULE_ALIAS_NFT_OBJ(NFT_OBJECT_CT_HELPER);
MODULE_ALIAS_NFT_OBJ(NFT_OBJECT_CT_TIMEOUT);
MODULE_ALIAS_NFT_OBJ(NFT_OBJECT_CT_EXPECT);
MODULE_DESCRIPTION("Netfilter nf_tables conntrack module");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/module.h`, `linux/netlink.h`, `linux/netfilter.h`, `linux/netfilter/nf_tables.h`, `net/netfilter/nf_tables_core.h`, `net/netfilter/nf_conntrack.h`.
- Detected declarations: `struct nft_ct_helper_obj`, `struct nft_ct_timeout_obj`, `struct nft_ct_expect_obj`, `function nft_ct_get_eval_counter`, `function nft_ct_get_eval`, `function nft_ct_set_zone_eval`, `function nft_ct_set_eval`, `function nft_ct_tmpl_put_pcpu`, `function for_each_possible_cpu`, `function nft_ct_tmpl_alloc_pcpu`.
- 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.