Scheduler 翻译成中文叫做调度器。
调度器这个词对于学计算机的同学来说应该并不陌生,因为在大学操作系统的课堂上我们学过很多关于进程调度的知识。
- 先来先服务(FCFS)
- 短作业优先(SJF)
- 优先级调度
- 时间片轮转
- 多级反馈队列
等等。
在这篇文章中,我们将会讨论高通 WLAN Host Driver 中调度器的实现。
为什么先学习调度器呢?
因为调度器是 WLAN Host Driver 中相对简单的部分,仅有 4 个源代码文件,而且调度器是 WLAN Host Driver 的核心部分,是各个模块之间沟通的桥梁。
源代码我转存到了我的 GitHub 仓库中,今天要看的部分在这里:
也可以使用我的 opengrok 服务器来查看源代码,如果它还在线的话。
https://opengrok.dijk.eu.org/xref/wlan-driver/qca-wifi-host-cmn/scheduler/
Scheduler translates to 调度器 (dispatcher) in Chinese.
The word scheduler should be familiar to anyone in computer science — in university OS classes we learned a lot about process scheduling.
- First Come First Served (FCFS)
- Shortest Job First (SJF)
- Priority scheduling
- Round-robin
- Multi-level feedback queue
and so on.
In this article, we’ll discuss the scheduler implementation in Qualcomm’s WLAN Host Driver.
Why study the scheduler first?
Because the scheduler is one of the simpler parts of the WLAN Host Driver — only 4 source files — and it’s also the core of the driver, acting as the bridge between all modules.
I’ve mirrored the source code to my GitHub repo; the part we’re looking at today is here:
You can also browse the source on my opengrok server, if it’s still online.
https://opengrok.dijk.eu.org/xref/wlan-driver/qca-wifi-host-cmn/scheduler/

效果图
