net/netfilter/nfnetlink_queue.c
Source file repositories/reference/linux-study-clean/net/netfilter/nfnetlink_queue.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/nfnetlink_queue.c- Extension
.c- Size
- 49356 bytes
- Lines
- 1964
- 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/skbuff.hlinux/init.hlinux/spinlock.hlinux/slab.hlinux/notifier.hlinux/netdevice.hlinux/netfilter.hlinux/proc_fs.hlinux/netfilter_ipv4.hlinux/netfilter_ipv6.hlinux/netfilter_bridge.hlinux/netfilter/nfnetlink.hlinux/netfilter/nfnetlink_queue.hlinux/netfilter/nf_conntrack_common.hlinux/list.hlinux/cgroup-defs.hlinux/rhashtable.hlinux/jhash.hnet/gso.hnet/sock.hnet/tcp_states.hnet/netfilter/nf_queue.hnet/netns/generic.hlinux/atomic.h../bridge/br_private.hnet/netfilter/nf_conntrack.h
Detected Declarations
struct nfqnl_instancestruct nfnl_queue_netstruct iter_statefunction instance_hashfnfunction instance_lookupfunction instance_createfunction instance_destroy_workfunction __instance_destroyfunction instance_destroyfunction __enqueue_entryfunction __dequeue_entryfunction find_dequeue_entryfunction nf_iteratefunction nf_ip_reroutefunction nf_ip6_reroutefunction nf_reroutefunction nf_reinjectfunction nf_ct_drop_unconfirmedfunction nf_bridge_port_validfunction nf_bridge_ports_validfunction nfqnl_reinjectfunction nfqnl_flushfunction nfqnl_put_packet_infofunction nfqnl_put_sk_uidgidfunction nfqnl_put_sk_classidfunction nfqnl_get_sk_secctxfunction nfqnl_get_bridge_sizefunction nfqnl_put_bridgefunction nf_queue_checksum_helpfunction nfqnl_put_master_ifindexfunction nfqnl_build_packet_messagefunction __nfqnl_enqueue_packetfunction nf_queue_entry_dupfunction skb_gso_segmentfunction nf_bridge_adjust_segmented_datafunction __nfqnl_enqueue_packet_gsofunction nfqnl_enqueue_packetfunction skb_list_walk_safefunction nfqnl_manglefunction nfqnl_set_modefunction dev_cmpfunction nfqnl_dev_dropfunction nfqnl_rcv_dev_eventfunction nfqnl_nf_hook_dropfunction nfqnl_rcv_nl_eventfunction hlist_for_each_entry_safefunction verdict_instance_lookupfunction verdicthdr_get
Annotated Snippet
module_init(nfnetlink_queue_init);
module_exit(nfnetlink_queue_fini);
Annotation
- Immediate include surface: `linux/module.h`, `linux/skbuff.h`, `linux/init.h`, `linux/spinlock.h`, `linux/slab.h`, `linux/notifier.h`, `linux/netdevice.h`, `linux/netfilter.h`.
- Detected declarations: `struct nfqnl_instance`, `struct nfnl_queue_net`, `struct iter_state`, `function instance_hashfn`, `function instance_lookup`, `function instance_create`, `function instance_destroy_work`, `function __instance_destroy`, `function instance_destroy`, `function __enqueue_entry`.
- 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.