net/netfilter/xt_recent.c
Source file repositories/reference/linux-study-clean/net/netfilter/xt_recent.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/xt_recent.c- Extension
.c- Size
- 19677 bytes
- Lines
- 764
- 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.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- 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/ip.hlinux/ipv6.hlinux/module.hlinux/moduleparam.hlinux/proc_fs.hlinux/seq_file.hlinux/string.hlinux/ctype.hlinux/list.hlinux/random.hlinux/jhash.hlinux/bitops.hlinux/skbuff.hlinux/inet.hlinux/slab.hlinux/vmalloc.hnet/net_namespace.hnet/netns/generic.hlinux/netfilter/x_tables.hlinux/netfilter/xt_recent.h
Detected Declarations
struct recent_entrystruct recent_tablestruct recent_netstruct recent_iter_statefunction recent_entry_hash4function recent_entry_hash6function recent_entry_lookupfunction recent_entry_removefunction recent_entry_reapfunction recent_entry_initfunction recent_entry_updatefunction recent_table_flushfunction recent_mtfunction recent_table_freefunction recent_mt_checkfunction recent_mt_check_v0function recent_mt_check_v1function recent_mt_destroyfunction recent_seq_stopfunction recent_seq_showfunction recent_seq_openfunction recent_mt_proc_writefunction recent_proc_net_initfunction recent_proc_net_exitfunction recent_proc_net_initfunction recent_proc_net_exitfunction recent_net_exitfunction recent_mt_initfunction recent_mt_exitmodule init recent_mt_init
Annotated Snippet
module_init(recent_mt_init);
module_exit(recent_mt_exit);
Annotation
- Immediate include surface: `linux/init.h`, `linux/ip.h`, `linux/ipv6.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/proc_fs.h`, `linux/seq_file.h`, `linux/string.h`.
- Detected declarations: `struct recent_entry`, `struct recent_table`, `struct recent_net`, `struct recent_iter_state`, `function recent_entry_hash4`, `function recent_entry_hash6`, `function recent_entry_lookup`, `function recent_entry_remove`, `function recent_entry_reap`, `function recent_entry_init`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
- 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.