net/sched/sch_mqprio.c
Source file repositories/reference/linux-study-clean/net/sched/sch_mqprio.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/sch_mqprio.c- Extension
.c- Size
- 20766 bytes
- Lines
- 794
- 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.
- 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/ethtool_netlink.hlinux/types.hlinux/slab.hlinux/kernel.hlinux/string.hlinux/errno.hlinux/skbuff.hlinux/module.hnet/netlink.hnet/pkt_sched.hnet/sch_generic.hnet/pkt_cls.hsch_mqprio_lib.h
Detected Declarations
struct mqprio_schedfunction mqprio_enable_offloadfunction mqprio_disable_offloadfunction mqprio_destroyfunction mqprio_parse_optfunction mqprio_parse_tc_entryfunction mqprio_parse_tc_entriesfunction nla_for_each_attr_typefunction mqprio_parse_nlattrfunction nla_for_each_nestedfunction nla_for_each_nestedfunction mqprio_initfunction mqprio_attachfunction mqprio_graftfunction dump_ratesfunction mqprio_dump_tc_entriesfunction mqprio_dumpfunction mqprio_findfunction mqprio_dump_classfunction mqprio_dump_class_statsfunction mqprio_walkfunction mqprio_module_initfunction mqprio_module_exitmodule init mqprio_module_init
Annotated Snippet
module_init(mqprio_module_init);
module_exit(mqprio_module_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Classful multiqueue prio qdisc");
Annotation
- Immediate include surface: `linux/ethtool_netlink.h`, `linux/types.h`, `linux/slab.h`, `linux/kernel.h`, `linux/string.h`, `linux/errno.h`, `linux/skbuff.h`, `linux/module.h`.
- Detected declarations: `struct mqprio_sched`, `function mqprio_enable_offload`, `function mqprio_disable_offload`, `function mqprio_destroy`, `function mqprio_parse_opt`, `function mqprio_parse_tc_entry`, `function mqprio_parse_tc_entries`, `function nla_for_each_attr_type`, `function mqprio_parse_nlattr`, `function nla_for_each_nested`.
- 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.