include/net/netfilter/nf_conntrack_count.h
Source file repositories/reference/linux-study-clean/include/net/netfilter/nf_conntrack_count.h
File Facts
- System
- Linux kernel
- Corpus path
include/net/netfilter/nf_conntrack_count.h- Extension
.h- Size
- 1179 bytes
- Lines
- 39
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: implementation source
- Status
- source 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/list.hlinux/spinlock.hnet/netfilter/nf_conntrack_tuple.hnet/netfilter/nf_conntrack_zones.h
Detected Declarations
struct nf_conncount_datastruct nf_conncount_list
Annotated Snippet
struct nf_conncount_list {
spinlock_t list_lock;
u32 last_gc; /* jiffies at most recent gc */
struct list_head head; /* connections with the same filtering key */
unsigned int count; /* length of list */
unsigned int last_gc_count; /* length of list at most recent gc */
};
struct nf_conncount_data *nf_conncount_init(struct net *net, unsigned int keylen);
void nf_conncount_destroy(struct net *net, struct nf_conncount_data *data);
unsigned int nf_conncount_count_skb(struct net *net,
const struct sk_buff *skb,
u16 l3num,
struct nf_conncount_data *data,
const u32 *key);
int nf_conncount_add_skb(struct net *net, const struct sk_buff *skb,
u16 l3num, struct nf_conncount_list *list);
void nf_conncount_list_init(struct nf_conncount_list *list);
bool nf_conncount_gc_list(struct net *net,
struct nf_conncount_list *list);
void nf_conncount_cache_free(struct nf_conncount_list *list);
#endif
Annotation
- Immediate include surface: `linux/list.h`, `linux/spinlock.h`, `net/netfilter/nf_conntrack_tuple.h`, `net/netfilter/nf_conntrack_zones.h`.
- Detected declarations: `struct nf_conncount_data`, `struct nf_conncount_list`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: source implementation candidate.
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.