net/sched/sch_gred.c
Source file repositories/reference/linux-study-clean/net/sched/sch_gred.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/sch_gred.c- Extension
.c- Size
- 23361 bytes
- Lines
- 951
- 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/slab.hlinux/module.hlinux/types.hlinux/kernel.hlinux/skbuff.hnet/pkt_cls.hnet/pkt_sched.hnet/red.h
Detected Declarations
struct gred_sched_datastruct gred_schedstruct gred_sched_datastruct gred_schedfunction gred_wred_modefunction gred_enable_wred_modefunction gred_disable_wred_modefunction gred_rio_modefunction gred_enable_rio_modefunction gred_disable_rio_modefunction gred_wred_mode_checkfunction gred_backlogfunction tc_index_to_dpfunction gred_load_wred_setfunction gred_store_wred_setfunction gred_use_ecnfunction gred_use_harddropfunction gred_per_vq_red_flags_usedfunction gred_enqueuefunction gred_resetfunction gred_offloadfunction gred_offload_dump_statsfunction gred_destroy_vqfunction gred_change_table_deffunction gred_change_vqfunction gred_vq_applyfunction gred_vqs_applyfunction nla_for_each_nestedfunction gred_vq_validatefunction gred_vqs_validatefunction nla_for_each_nestedfunction gred_changefunction gred_initfunction gred_dumpfunction gred_destroyfunction gred_module_initfunction gred_module_exitmodule init gred_module_init
Annotated Snippet
module_init(gred_module_init)
module_exit(gred_module_exit)
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Generic Random Early Detection qdisc");
Annotation
- Immediate include surface: `linux/slab.h`, `linux/module.h`, `linux/types.h`, `linux/kernel.h`, `linux/skbuff.h`, `net/pkt_cls.h`, `net/pkt_sched.h`, `net/red.h`.
- Detected declarations: `struct gred_sched_data`, `struct gred_sched`, `struct gred_sched_data`, `struct gred_sched`, `function gred_wred_mode`, `function gred_enable_wred_mode`, `function gred_disable_wred_mode`, `function gred_rio_mode`, `function gred_enable_rio_mode`, `function gred_disable_rio_mode`.
- 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.