include/linux/netfilter/nf_conntrack_common.h
Source file repositories/reference/linux-study-clean/include/linux/netfilter/nf_conntrack_common.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/netfilter/nf_conntrack_common.h- Extension
.h- Size
- 1068 bytes
- Lines
- 46
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/refcount.huapi/linux/netfilter/nf_conntrack_common.h
Detected Declarations
struct ip_conntrack_statstruct nf_conntrackfunction nf_conntrack_putfunction nf_conntrack_get
Annotated Snippet
struct ip_conntrack_stat {
unsigned int found;
unsigned int invalid;
unsigned int insert;
unsigned int insert_failed;
unsigned int clash_resolve;
unsigned int drop;
unsigned int early_drop;
unsigned int error;
unsigned int expect_new;
unsigned int expect_create;
unsigned int expect_delete;
unsigned int search_restart;
unsigned int chaintoolong;
};
#define NFCT_INFOMASK 7UL
#define NFCT_PTRMASK ~(NFCT_INFOMASK)
struct nf_conntrack {
refcount_t use;
};
void nf_conntrack_destroy(struct nf_conntrack *nfct);
/* like nf_ct_put, but without module dependency on nf_conntrack */
static inline void nf_conntrack_put(struct nf_conntrack *nfct)
{
if (nfct && refcount_dec_and_test(&nfct->use))
nf_conntrack_destroy(nfct);
}
static inline void nf_conntrack_get(struct nf_conntrack *nfct)
{
if (nfct)
refcount_inc(&nfct->use);
}
#endif /* _NF_CONNTRACK_COMMON_H */
Annotation
- Immediate include surface: `linux/refcount.h`, `uapi/linux/netfilter/nf_conntrack_common.h`.
- Detected declarations: `struct ip_conntrack_stat`, `struct nf_conntrack`, `function nf_conntrack_put`, `function nf_conntrack_get`.
- Atlas domain: Core OS / Core Kernel Interface.
- 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.