工作队列 小任务机制
1.系统分配工作者线程:
声明结构体:
struct work_struct detect_i2c_work;
初始化任务
//延迟指定滴答 工作队列的初始化
INIT_DELAYED_WORK(&detect_i2c_work, detect_i2c_work_func);
//不延迟
INIT_WORK(delayed_work, delayed_work_handler, data);
调度
//延迟指定滴答 调度
schedule_delayed_work(&detect_i
原创
2021-01-26 17:36:02 ·
98 阅读 ·
0 评论