net/sched/sch_hhf.c
Source file repositories/reference/linux-study-clean/net/sched/sch_hhf.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/sch_hhf.c- Extension
.c- Size
- 22517 bytes
- Lines
- 733
- 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/jiffies.hlinux/module.hlinux/skbuff.hlinux/vmalloc.hlinux/siphash.hnet/pkt_sched.hnet/sock.h
Detected Declarations
struct hh_flow_statestruct wdrr_bucketstruct hhf_sched_dataenum wdrr_bucket_idxfunction hhf_time_stampfunction list_for_each_entry_safefunction hhf_classifyfunction bucket_addfunction hhf_dropfunction hhf_enqueuefunction hhf_resetfunction hhf_destroyfunction list_for_each_entry_safefunction hhf_changefunction hhf_initfunction hhf_dumpfunction hhf_dump_statsfunction hhf_module_initfunction hhf_module_exitmodule init hhf_module_init
Annotated Snippet
module_init(hhf_module_init)
module_exit(hhf_module_exit)
MODULE_AUTHOR("Terry Lam");
MODULE_AUTHOR("Nandita Dukkipati");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Heavy-Hitter Filter (HHF)");
Annotation
- Immediate include surface: `linux/jiffies.h`, `linux/module.h`, `linux/skbuff.h`, `linux/vmalloc.h`, `linux/siphash.h`, `net/pkt_sched.h`, `net/sock.h`.
- Detected declarations: `struct hh_flow_state`, `struct wdrr_bucket`, `struct hhf_sched_data`, `enum wdrr_bucket_idx`, `function hhf_time_stamp`, `function list_for_each_entry_safe`, `function hhf_classify`, `function bucket_add`, `function hhf_drop`, `function hhf_enqueue`.
- 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.