工作队列 API 提供三个函数来初始化任务(通过一个事先分配的缓存); 参见 清单 6。
The work queue API provides three functions to initialize work (from an allocated buffer); see Listing 6.
利用INIT _ work来初始化每个任务项目,任务定义完成,接着通过调用queue _ work将任务安排到工作队列中。
Each work item is then initialized with INIT_WORK, the work defined, and then enqueued onto the work queue with a call to queue_work.
假设1:队列管理器已建立并正在运行,通道初始化程序正在运行。
Assumption 1: the queue managers are created and are running, and the channel initiators are running.
应用推荐