queue_delayed_work和schedule_delayed_work的区别
参考链接:https://zhuanlan.zhihu.com/p/558543523
queue_delayed_work 跟schedule_delayed_work 类似,
区别:
- schedule_delayed_work 是在系统默认的工作队列上执行一个work,
- queue_delayed_work需要自行指定工作队列。类似地,schedule_delayed_work也是依赖于queue_delayed_work实现的。
static inline bool schedule_delayed_work(struct delayed_work *dwork, unsigned long delay) { return queue_delayed_work(system_wq, dwork, delay); }