include/uapi/linux/netfilter/ipset/ip_set.h
Source file repositories/reference/linux-study-clean/include/uapi/linux/netfilter/ipset/ip_set.h
File Facts
- System
- Linux kernel
- Corpus path
include/uapi/linux/netfilter/ipset/ip_set.h- Extension
.h- Size
- 9286 bytes
- Lines
- 313
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.h
Detected Declarations
struct ip_set_counter_match0struct ip_set_counter_matchstruct ip_set_req_get_setstruct ip_set_req_get_set_familystruct ip_set_req_versionenum ipset_cmdenum ipset_errnoenum ipset_cmd_flagsenum ipset_cadt_flagsenum ipset_create_flagsenum ipset_adtenum ip_set_dimenum ip_set_kopt
Annotated Snippet
struct ip_set_counter_match0 {
__u8 op;
__u64 value;
};
struct ip_set_counter_match {
__aligned_u64 value;
__u8 op;
};
/* Interface to iptables/ip6tables */
#define SO_IP_SET 83
union ip_set_name_index {
char name[IPSET_MAXNAMELEN];
ip_set_id_t index;
};
#define IP_SET_OP_GET_BYNAME 0x00000006 /* Get set index by name */
struct ip_set_req_get_set {
unsigned int op;
unsigned int version;
union ip_set_name_index set;
};
#define IP_SET_OP_GET_BYINDEX 0x00000007 /* Get set name by index */
/* Uses ip_set_req_get_set */
#define IP_SET_OP_GET_FNAME 0x00000008 /* Get set index and family */
struct ip_set_req_get_set_family {
unsigned int op;
unsigned int version;
unsigned int family;
union ip_set_name_index set;
};
#define IP_SET_OP_VERSION 0x00000100 /* Ask kernel version */
struct ip_set_req_version {
unsigned int op;
unsigned int version;
};
#endif /* _UAPI_IP_SET_H */
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct ip_set_counter_match0`, `struct ip_set_counter_match`, `struct ip_set_req_get_set`, `struct ip_set_req_get_set_family`, `struct ip_set_req_version`, `enum ipset_cmd`, `enum ipset_errno`, `enum ipset_cmd_flags`, `enum ipset_cadt_flags`, `enum ipset_create_flags`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.