net/netfilter/nfnetlink_cthelper.c
Source file repositories/reference/linux-study-clean/net/netfilter/nfnetlink_cthelper.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/nfnetlink_cthelper.c- Extension
.c- Size
- 19674 bytes
- Lines
- 808
- 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/init.hlinux/module.hlinux/kernel.hlinux/skbuff.hlinux/netlink.hlinux/rculist.hlinux/slab.hlinux/types.hlinux/list.hlinux/errno.hlinux/capability.hnet/netlink.hnet/sock.hnet/netfilter/nf_conntrack_helper.hnet/netfilter/nf_conntrack_expect.hnet/netfilter/nf_conntrack_ecache.hlinux/netfilter/nfnetlink.hlinux/netfilter/nfnetlink_conntrack.hlinux/netfilter/nfnetlink_cthelper.h
Detected Declarations
struct nfnl_cthelperfunction nfnl_userspace_cthelperfunction nfnl_cthelper_parse_tuplefunction nfnl_cthelper_from_nlattrfunction nfnl_cthelper_to_nlattrfunction nfnl_cthelper_expect_policyfunction nfnl_cthelper_parse_expect_policyfunction nfnl_cthelper_createfunction nfnl_cthelper_update_policy_onefunction nfnl_cthelper_update_policy_allfunction nfnl_cthelper_update_policyfunction nfnl_cthelper_updatefunction nfnl_cthelper_newfunction list_for_each_entryfunction nfnl_cthelper_dump_tuplefunction nfnl_cthelper_dump_policyfunction nfnl_cthelper_fill_infofunction nfnl_cthelper_dump_tablefunction hlist_for_each_entry_rcufunction nfnl_cthelper_getfunction list_for_each_entryfunction nfnl_cthelper_delfunction nfnl_cthelper_initfunction nfnl_cthelper_exitfunction list_for_each_entry_safemodule init nfnl_cthelper_init
Annotated Snippet
module_init(nfnl_cthelper_init);
module_exit(nfnl_cthelper_exit);
Annotation
- Immediate include surface: `linux/init.h`, `linux/module.h`, `linux/kernel.h`, `linux/skbuff.h`, `linux/netlink.h`, `linux/rculist.h`, `linux/slab.h`, `linux/types.h`.
- Detected declarations: `struct nfnl_cthelper`, `function nfnl_userspace_cthelper`, `function nfnl_cthelper_parse_tuple`, `function nfnl_cthelper_from_nlattr`, `function nfnl_cthelper_to_nlattr`, `function nfnl_cthelper_expect_policy`, `function nfnl_cthelper_parse_expect_policy`, `function nfnl_cthelper_create`, `function nfnl_cthelper_update_policy_one`, `function nfnl_cthelper_update_policy_all`.
- 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.