net/netfilter/nft_compat.c
Source file repositories/reference/linux-study-clean/net/netfilter/nft_compat.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/nft_compat.c- Extension
.c- Size
- 24587 bytes
- Lines
- 1009
- 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/nfnetlink.hlinux/netfilter/nf_tables.hlinux/netfilter/nf_tables_compat.hlinux/netfilter/x_tables.hlinux/netfilter_ipv4/ip_tables.hlinux/netfilter_ipv6/ip6_tables.hlinux/netfilter_bridge/ebtables.hlinux/netfilter_arp/arp_tables.hnet/netfilter/nf_tables.hnet/netfilter/nf_log.h
Detected Declarations
struct nft_xt_match_privfunction nft_compat_chain_validate_dependencyfunction nft_compat_set_parfunction nft_target_eval_xtfunction nft_target_eval_bridgefunction nft_target_set_tgchk_paramfunction target_compat_from_userfunction nft_parse_compatfunction nft_compat_wait_for_destructorsfunction nft_target_initfunction __nft_mt_tg_destroyfunction nft_target_destroyfunction nft_extension_dump_infofunction nft_target_dumpfunction nft_target_validatefunction __nft_match_evalfunction nft_match_large_evalfunction nft_match_evalfunction nft_match_set_mtchk_paramfunction match_compat_from_userfunction __nft_match_initfunction nft_match_initfunction nft_match_large_initfunction __nft_match_destroyfunction nft_match_destroyfunction nft_match_large_destroyfunction __nft_match_dumpfunction nft_match_dumpfunction nft_match_large_dumpfunction nft_match_validatefunction nfnl_compat_fill_infofunction nfnl_compat_get_rcufunction NFNL_MSG_TYPEfunction nft_match_select_opsfunction nft_match_release_opsfunction nft_target_select_opsfunction nft_target_release_opsfunction nft_compat_module_initfunction nft_compat_module_exitmodule init nft_compat_module_init
Annotated Snippet
module_init(nft_compat_module_init);
module_exit(nft_compat_module_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Pablo Neira Ayuso <pablo@netfilter.org>");
MODULE_ALIAS_NFT_EXPR("match");
MODULE_ALIAS_NFT_EXPR("target");
MODULE_DESCRIPTION("x_tables over nftables support");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/module.h`, `linux/netlink.h`, `linux/netfilter.h`, `linux/netfilter/nfnetlink.h`, `linux/netfilter/nf_tables.h`, `linux/netfilter/nf_tables_compat.h`.
- Detected declarations: `struct nft_xt_match_priv`, `function nft_compat_chain_validate_dependency`, `function nft_compat_set_par`, `function nft_target_eval_xt`, `function nft_target_eval_bridge`, `function nft_target_set_tgchk_param`, `function target_compat_from_user`, `function nft_parse_compat`, `function nft_compat_wait_for_destructors`, `function nft_target_init`.
- 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.