net/sched/cls_matchall.c
Source file repositories/reference/linux-study-clean/net/sched/cls_matchall.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/cls_matchall.c- Extension
.c- Size
- 10065 bytes
- Lines
- 421
- 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.
- 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/kernel.hlinux/init.hlinux/module.hlinux/percpu.hnet/sch_generic.hnet/pkt_cls.hnet/tc_wrapper.h
Detected Declarations
struct cls_mall_headfunction mall_classifyfunction mall_initfunction __mall_destroyfunction mall_destroy_workfunction mall_destroy_hw_filterfunction mall_replace_hw_filterfunction mall_destroyfunction mall_changefunction mall_deletefunction mall_walkfunction mall_reoffloadfunction mall_stats_hw_filterfunction mall_dumpfunction for_each_possible_cpufunction mall_bind_classfunction cls_mall_initfunction cls_mall_exitmodule init cls_mall_init
Annotated Snippet
module_init(cls_mall_init);
module_exit(cls_mall_exit);
MODULE_AUTHOR("Jiri Pirko <jiri@mellanox.com>");
MODULE_DESCRIPTION("Match-all classifier");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/module.h`, `linux/percpu.h`, `net/sch_generic.h`, `net/pkt_cls.h`, `net/tc_wrapper.h`.
- Detected declarations: `struct cls_mall_head`, `function mall_classify`, `function mall_init`, `function __mall_destroy`, `function mall_destroy_work`, `function mall_destroy_hw_filter`, `function mall_replace_hw_filter`, `function mall_destroy`, `function mall_change`, `function mall_delete`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration 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.