net/sched/sch_dualpi2.c
Source file repositories/reference/linux-study-clean/net/sched/sch_dualpi2.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/sch_dualpi2.c- Extension
.c- Size
- 36024 bytes
- Lines
- 1238
- 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/errno.hlinux/hrtimer.hlinux/if_vlan.hlinux/kernel.hlinux/limits.hlinux/module.hlinux/skbuff.hlinux/types.hnet/gso.hnet/inet_ecn.hnet/pkt_cls.hnet/pkt_sched.h
Detected Declarations
struct dualpi2_sched_datastruct dualpi2_skb_cbenum dualpi2_classification_resultsfunction dualpi2_sojourn_timefunction head_enqueue_timefunction dualpi2_scale_alpha_betafunction dualpi2_unscale_alpha_betafunction next_pi2_timeoutfunction skb_is_l4sfunction skb_in_l_queuefunction skb_apply_stepfunction dualpi2_markfunction dualpi2_reset_c_protectionfunction queuefunction dualpi2_rollfunction probabilityfunction overloadfunction must_dropfunction dualpi2_read_ectfunction dualpi2_skb_classifyfunction dualpi2_enqueue_skbfunction fatefunction skb_list_walk_safefunction qdisc_bstats_updatefunction do_step_aqmfunction drop_and_retryfunction dualpi2_dequeue_dropfunction __scale_deltafunction get_queue_delaysfunction calculate_probabilityfunction get_memory_limitfunction convert_us_to_nsecfunction convert_ns_to_usecfunction dualpi2_timerfunction dualpi2_changefunction dualpi2_reset_defaultfunction dualpi2_initfunction dualpi2_dumpfunction dualpi2_dump_statsfunction dualpi2_resetfunction dualpi2_destroyfunction dualpi2_findfunction dualpi2_bindfunction dualpi2_unbindfunction dualpi2_walkfunction dualpi2_module_initfunction dualpi2_module_exitmodule init dualpi2_module_init
Annotated Snippet
module_init(dualpi2_module_init);
module_exit(dualpi2_module_exit);
MODULE_DESCRIPTION("Dual Queue with Proportional Integral controller Improved with a Square (dualpi2) scheduler");
MODULE_AUTHOR("Koen De Schepper <koen.de_schepper@nokia-bell-labs.com>");
MODULE_AUTHOR("Chia-Yu Chang <chia-yu.chang@nokia-bell-labs.com>");
MODULE_AUTHOR("Olga Albisser <olga@albisser.org>");
MODULE_AUTHOR("Henrik Steen <henrist@henrist.net>");
MODULE_AUTHOR("Olivier Tilmans <olivier.tilmans@nokia.com>");
MODULE_LICENSE("Dual BSD/GPL");
MODULE_VERSION("1.0");
Annotation
- Immediate include surface: `linux/errno.h`, `linux/hrtimer.h`, `linux/if_vlan.h`, `linux/kernel.h`, `linux/limits.h`, `linux/module.h`, `linux/skbuff.h`, `linux/types.h`.
- Detected declarations: `struct dualpi2_sched_data`, `struct dualpi2_skb_cb`, `enum dualpi2_classification_results`, `function dualpi2_sojourn_time`, `function head_enqueue_time`, `function dualpi2_scale_alpha_beta`, `function dualpi2_unscale_alpha_beta`, `function next_pi2_timeout`, `function skb_is_l4s`, `function skb_in_l_queue`.
- 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.