net/sched/cls_basic.c
Source file repositories/reference/linux-study-clean/net/sched/cls_basic.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/cls_basic.c- Extension
.c- Size
- 7984 bytes
- Lines
- 347
- 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/module.hlinux/slab.hlinux/types.hlinux/kernel.hlinux/string.hlinux/errno.hlinux/rtnetlink.hlinux/skbuff.hlinux/idr.hlinux/percpu.hnet/netlink.hnet/act_api.hnet/pkt_cls.hnet/tc_wrapper.h
Detected Declarations
struct basic_headstruct basic_filterfunction basic_classifyfunction list_for_each_entry_rcufunction list_for_each_entryfunction basic_initfunction __basic_delete_filterfunction basic_delete_filter_workfunction basic_destroyfunction list_for_each_entry_safefunction basic_deletefunction basic_set_parmsfunction basic_changefunction basic_walkfunction list_for_each_entryfunction basic_bind_classfunction basic_dumpfunction for_each_possible_cpufunction init_basicfunction exit_basicmodule init init_basic
Annotated Snippet
module_init(init_basic)
module_exit(exit_basic)
MODULE_DESCRIPTION("TC basic 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/rtnetlink.h`, `linux/skbuff.h`.
- Detected declarations: `struct basic_head`, `struct basic_filter`, `function basic_classify`, `function list_for_each_entry_rcu`, `function list_for_each_entry`, `function basic_init`, `function __basic_delete_filter`, `function basic_delete_filter_work`, `function basic_destroy`, `function list_for_each_entry_safe`.
- 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.