net/sched/sch_cake.c
Source file repositories/reference/linux-study-clean/net/sched/sch_cake.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/sch_cake.c- Extension
.c- Size
- 91038 bytes
- Lines
- 3395
- 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/types.hlinux/kernel.hlinux/jiffies.hlinux/string.hlinux/in.hlinux/errno.hlinux/init.hlinux/skbuff.hlinux/jhash.hlinux/slab.hlinux/vmalloc.hlinux/reciprocal_div.hnet/netlink.hlinux/if_vlan.hnet/gso.hnet/pkt_sched.hnet/sch_priv.hnet/pkt_cls.hnet/tcp.hnet/flow_dissector.hnet/netfilter/nf_conntrack_core.h
Detected Declarations
struct cobalt_paramsstruct cobalt_varsstruct cake_flowstruct cake_hoststruct cake_heap_entrystruct cake_tin_datastruct cake_sched_configstruct cake_sched_datastruct cobalt_skb_cbstruct cake_mq_schedfunction us_to_nsfunction cobalt_get_enqueue_timefunction cobalt_set_enqueue_timefunction cobalt_newton_stepfunction cobalt_invsqrtfunction cobalt_vars_initfunction sqrtfunction cobalt_queue_fullfunction cobalt_queue_emptyfunction cobalt_should_dropfunction cake_update_flowkeysfunction cake_dsrcfunction cake_ddstfunction cake_dec_srchost_bulk_flow_countfunction cake_inc_srchost_bulk_flow_countfunction cake_dec_dsthost_bulk_flow_countfunction cake_inc_dsthost_bulk_flow_countfunction cake_get_flow_quantumfunction cake_hashfunction flow_queue_addfunction cake_tcph_sack_comparefunction cake_tcph_get_tstampfunction cake_tcph_may_dropfunction cake_ewmafunction cake_calc_overheadfunction cake_overheadfunction cake_heap_swapfunction cake_heap_get_backlogfunction cake_heapifyfunction cake_heapify_upfunction cake_advance_shaperfunction cake_dropfunction cake_handle_diffservfunction cake_classifyfunction cake_enqueuefunction ktime_afterfunction skb_list_walk_safefunction cake_clear_tin
Annotated Snippet
module_init(cake_module_init)
module_exit(cake_module_exit)
MODULE_AUTHOR("Jonathan Morton");
MODULE_LICENSE("Dual BSD/GPL");
MODULE_DESCRIPTION("The CAKE shaper.");
MODULE_IMPORT_NS("NET_SCHED_INTERNAL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/types.h`, `linux/kernel.h`, `linux/jiffies.h`, `linux/string.h`, `linux/in.h`, `linux/errno.h`, `linux/init.h`.
- Detected declarations: `struct cobalt_params`, `struct cobalt_vars`, `struct cake_flow`, `struct cake_host`, `struct cake_heap_entry`, `struct cake_tin_data`, `struct cake_sched_config`, `struct cake_sched_data`, `struct cobalt_skb_cb`, `struct cake_mq_sched`.
- 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.