net/netfilter/nfnetlink.c
Source file repositories/reference/linux-study-clean/net/netfilter/nfnetlink.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/nfnetlink.c- Extension
.c- Size
- 19862 bytes
- Lines
- 820
- 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/types.hlinux/socket.hlinux/kernel.hlinux/string.hlinux/sockios.hlinux/net.hlinux/skbuff.hlinux/uaccess.hnet/sock.hlinux/init.hlinux/sched/signal.hnet/netlink.hnet/netns/generic.hlinux/netfilter.hlinux/netfilter/nfnetlink.h
Detected Declarations
struct nfnl_netstruct nfnl_errfunction nfnl_lockfunction nfnl_unlockfunction lockdep_nfnl_is_heldfunction nfnetlink_subsys_registerfunction nfnetlink_subsys_unregisterfunction nfnetlink_find_clientfunction nfnetlink_has_listenersfunction nfnetlink_sendfunction nfnetlink_set_errfunction nfnetlink_unicastfunction nfnetlink_broadcastfunction nfnetlink_rcv_msgfunction nfnl_err_addfunction nfnl_err_delfunction nfnl_err_resetfunction nfnl_err_deliverfunction list_for_each_entry_safefunction nfnetlink_rcv_batchfunction nfnetlink_rcv_skb_batchfunction nfnetlink_rcvfunction nfnetlink_bind_eventfunction nfnetlink_bindfunction nfnetlink_unbindfunction nfnetlink_net_initfunction nfnetlink_net_exit_batchfunction list_for_each_entryfunction nfnetlink_initfunction nfnetlink_exitmodule init nfnetlink_initexport nfnl_lockexport nfnl_unlockexport lockdep_nfnl_is_heldexport nfnetlink_subsys_registerexport nfnetlink_subsys_unregisterexport nfnetlink_has_listenersexport nfnetlink_sendexport nfnetlink_set_errexport nfnetlink_unicastexport nfnetlink_broadcast
Annotated Snippet
module_init(nfnetlink_init);
module_exit(nfnetlink_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/types.h`, `linux/socket.h`, `linux/kernel.h`, `linux/string.h`, `linux/sockios.h`, `linux/net.h`, `linux/skbuff.h`.
- Detected declarations: `struct nfnl_net`, `struct nfnl_err`, `function nfnl_lock`, `function nfnl_unlock`, `function lockdep_nfnl_is_held`, `function nfnetlink_subsys_register`, `function nfnetlink_subsys_unregister`, `function nfnetlink_find_client`, `function nfnetlink_has_listeners`, `function nfnetlink_send`.
- 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.