区别: schedule_delayed_work 是在系统默认的工作队列上执行一个work, queue_delayed_work需要自行指定工作队列。类似地,schedule_delayed_work也是依赖于queue_delayed_work实现的。 1 2 3 4 5 staticinlineboolschedule_delayed_work(structdelayed_work *dwork, unsignedlongdelay) { returnqueue_delayed_work(system...
veth_info->vi_state = VETH_STATE_LINKUP; printk("MIC virtual ethernet up for board %d\n", bd);#ifdefMIC_IS_EMULATIONprintk("Card wrote Magic: It must be UP!\n");#endifif(mic_vnet_mode == VNET_MODE_POLL) {schedule_delayed_work(&veth_info->vi_poll, msecs_to_jiffies(MICVETH_POL...
int queue_delayed_work(struct workqueue_struct *wq, struct work_struct *work, unsigned long delay); 它们与schedule_work()以及schedule_delayed_work()是类似的。
int queue_work(struct workqueue_struct *wq, struct work_struct *work); 或 int queue_delayed_work(struct workqueue_struct *wq, struct work_struct *work, unsigned long delay); 它们与schedule_work()以及schedule_delayed_work()是类似的。
调度时使用如下函数: int queue_work(struct workqueue_struct *wq, struct work_struct *work); 或 int queue_delayed_work(struct workqueue_struct *wq, struct work_struct *work, unsigned long delay); 它们与schedule_work()以及schedule_delayed_work()是类似的。©...