net/sched/cls_u32.c
Source file repositories/reference/linux-study-clean/net/sched/cls_u32.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/cls_u32.c- Extension
.c- Size
- 37405 bytes
- Lines
- 1509
- 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 IRQ or DMA behavior; this matters for the representative real-device path.
- 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/slab.hlinux/types.hlinux/kernel.hlinux/string.hlinux/errno.hlinux/percpu.hlinux/rtnetlink.hlinux/skbuff.hlinux/bitmap.hlinux/netdevice.hlinux/hash.hnet/netlink.hnet/act_api.hnet/pkt_cls.hlinux/idr.hnet/tc_wrapper.h
Detected Declarations
struct tc_u_knodestruct tc_u_hnodestruct tc_u_commonfunction handle2idfunction id2handlefunction u32_hash_foldfunction u32_classifyfunction gen_new_htidfunction u32_initfunction __u32_destroy_keyfunction u32_destroy_keyfunction u32_init_knodefunction u32_init_knodefunction u32_delete_keyfunction u32_clear_hw_hnodefunction u32_replace_hw_hnodefunction u32_remove_hw_knodefunction u32_replace_hw_knodefunction u32_clear_hnodefunction u32_destroy_hnodefunction u32_destroyfunction u32_deletefunction gen_new_kidfunction u32_unbind_filterfunction u32_bind_filterfunction u32_set_parmsfunction u32_replace_knodefunction u32_changefunction specifiedfunction u32_walkfunction u32_reoffload_hnodefunction u32_reoffload_knodefunction u32_reoffloadfunction u32_bind_classfunction u32_dumpfunction for_each_possible_cpufunction for_each_possible_cpufunction init_u32function exit_u32module init init_u32
Annotated Snippet
module_init(init_u32)
module_exit(exit_u32)
MODULE_DESCRIPTION("Universal 32bit based TC Classifier");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/slab.h`, `linux/types.h`, `linux/kernel.h`, `linux/string.h`, `linux/errno.h`, `linux/percpu.h`, `linux/rtnetlink.h`.
- Detected declarations: `struct tc_u_knode`, `struct tc_u_hnode`, `struct tc_u_common`, `function handle2id`, `function id2handle`, `function u32_hash_fold`, `function u32_classify`, `function gen_new_htid`, `function u32_init`, `function __u32_destroy_key`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration 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.