net/sched/sch_drr.c
Source file repositories/reference/linux-study-clean/net/sched/sch_drr.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/sch_drr.c- Extension
.c- Size
- 11620 bytes
- Lines
- 502
- 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/init.hlinux/errno.hlinux/netdevice.hlinux/pkt_sched.hnet/sch_generic.hnet/pkt_sched.hnet/pkt_cls.h
Detected Declarations
struct drr_classstruct drr_schedfunction cl_is_activefunction drr_change_classfunction drr_destroy_classfunction drr_delete_classfunction drr_search_classfunction drr_bind_tcffunction drr_unbind_tcffunction drr_graft_classfunction drr_qlen_notifyfunction drr_dump_classfunction drr_dump_class_statsfunction drr_walkfunction hlist_for_each_entryfunction drr_enqueuefunction drr_init_qdiscfunction drr_reset_qdiscfunction hlist_for_each_entryfunction drr_destroy_qdiscfunction drr_initfunction drr_exitmodule init drr_init
Annotated Snippet
module_init(drr_init);
module_exit(drr_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Deficit Round Robin scheduler");
Annotation
- Immediate include surface: `linux/module.h`, `linux/slab.h`, `linux/init.h`, `linux/errno.h`, `linux/netdevice.h`, `linux/pkt_sched.h`, `net/sch_generic.h`, `net/pkt_sched.h`.
- Detected declarations: `struct drr_class`, `struct drr_sched`, `function cl_is_active`, `function drr_change_class`, `function drr_destroy_class`, `function drr_delete_class`, `function drr_search_class`, `function drr_bind_tcf`, `function drr_unbind_tcf`, `function drr_graft_class`.
- 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.