net/sched/sch_red.c
Source file repositories/reference/linux-study-clean/net/sched/sch_red.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/sch_red.c- Extension
.c- Size
- 14178 bytes
- Lines
- 581
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/types.hlinux/kernel.hlinux/skbuff.hnet/pkt_sched.hnet/pkt_cls.hnet/inet_ecn.hnet/red.h
Detected Declarations
struct red_sched_datafunction red_use_ecnfunction red_use_harddropfunction red_use_nodropfunction red_enqueuefunction red_resetfunction red_offloadfunction red_destroyfunction __red_changefunction red_adaptative_timerfunction red_initfunction red_changefunction red_dump_offload_statsfunction red_dumpfunction red_dump_statsfunction red_dump_classfunction red_graft_offloadfunction red_graftfunction red_findfunction red_walkfunction red_module_initfunction red_module_exitmodule init red_module_init
Annotated Snippet
module_init(red_module_init)
module_exit(red_module_exit)
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Random Early Detection qdisc");
Annotation
- Immediate include surface: `linux/module.h`, `linux/types.h`, `linux/kernel.h`, `linux/skbuff.h`, `net/pkt_sched.h`, `net/pkt_cls.h`, `net/inet_ecn.h`, `net/red.h`.
- Detected declarations: `struct red_sched_data`, `function red_use_ecn`, `function red_use_harddrop`, `function red_use_nodrop`, `function red_enqueue`, `function red_reset`, `function red_offload`, `function red_destroy`, `function __red_change`, `function red_adaptative_timer`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.