net/netfilter/nfnetlink_log.c
Source file repositories/reference/linux-study-clean/net/netfilter/nfnetlink_log.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/nfnetlink_log.c- Extension
.c- Size
- 30715 bytes
- Lines
- 1239
- 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/if_arp.hlinux/init.hlinux/ip.hlinux/ipv6.hlinux/netdevice.hlinux/netfilter.hlinux/netfilter_bridge.hnet/netlink.hlinux/netfilter/nfnetlink.hlinux/netfilter/nfnetlink_log.hlinux/netfilter/nf_conntrack_common.hlinux/spinlock.hlinux/sysctl.hlinux/proc_fs.hlinux/security.hlinux/list.hlinux/slab.hnet/sock.hnet/netfilter/nf_log.hnet/netns/generic.hlinux/atomic.hlinux/refcount.h../bridge/br_private.hnet/netfilter/nf_conntrack.h
Detected Declarations
struct nfulnl_instancestruct nfnl_log_netstruct iter_statefunction instance_hashfnfunction __instance_lookupfunction instance_getfunction instance_lookup_get_rcufunction instance_lookup_getfunction nfulnl_instance_free_rcufunction instance_putfunction instance_createfunction __instance_destroyfunction instance_destroyfunction nfulnl_set_modefunction nfulnl_set_nlbufsizfunction nfulnl_set_timeoutfunction nfulnl_set_qthreshfunction nfulnl_set_flagsfunction nfulnl_alloc_skbfunction __nfulnl_sendfunction __nfulnl_flushfunction nfulnl_timerfunction nfulnl_get_bridge_sizefunction nfulnl_put_bridgefunction nflog_put_master_ifindexfunction __build_packet_messagefunction nfulnl_log_packetfunction nfulnl_rcv_nl_eventfunction hlist_for_each_entry_safefunction nfulnl_recv_unsuppfunction nfulnl_recv_configfunction seq_stopfunction seq_showfunction nfnl_log_net_initfunction nfnl_log_net_exitfunction nfnetlink_log_initfunction nfnetlink_log_finimodule init nfnetlink_log_init
Annotated Snippet
module_init(nfnetlink_log_init);
module_exit(nfnetlink_log_fini);
Annotation
- Immediate include surface: `linux/module.h`, `linux/skbuff.h`, `linux/if_arp.h`, `linux/init.h`, `linux/ip.h`, `linux/ipv6.h`, `linux/netdevice.h`, `linux/netfilter.h`.
- Detected declarations: `struct nfulnl_instance`, `struct nfnl_log_net`, `struct iter_state`, `function instance_hashfn`, `function __instance_lookup`, `function instance_get`, `function instance_lookup_get_rcu`, `function instance_lookup_get`, `function nfulnl_instance_free_rcu`, `function instance_put`.
- 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.