这就是工作队列api的核心。
工作队列与服务区域的关系
WUQue是从工作队列接收的请求总数。
WUQue is the total number of requests taken from the work queue.
下面我们看一个工作队列api的简单例子。
Let's now continue with a simple example of the work queue API.
新的请求传入并滞留在新的服务分类工作队列中。
A new request comes in and stays in the new service class work queue.
这些活动像一个工作队列,工作在这里被分配和完成。
The Activities act like a work queue, where work is assigned and completed.
现在,让我们看一下能够用于工作队列的API函数。
Now, let's look at the API functions that can be found for work queues.
通过工作队列与之通信的任务可以由结构体work_struct来定义。
The work to be communicated through the work queue is defined by the work_struct structure.
指定工作队列中的所有任务能够通过调用flush _ workqueue来完成。
All work on a given work queue can be completed using a call to flush_workqueue.
指定工作队列中的所有任务能够通过调用flush _ workqueue来完成。
All work on a given work queue can be completed using a call to flush_workqueue.
应用推荐