在这里name是work_struct的名字,function是当任务被调度时调用的函数,data是指向那个函数的指针。
Where name is the work_struct name, function is the function to be invoked when the task is scheduled, and data is the pointer to that function.
指向要调用的回调函数的指针(对于一种或多种事件类型)——为每种特定的事件注册一个回调函数,然后将在事件发生时调用这些函数。
Pointer to the callback function to be invoked (for one or more event Types) — for each specific event, register a callback function, and then these functions are called when the event occurs.
但是,这个方法将所选函数的指针复制到一个局部变量中,然后用function对象的call方法调用这个函数。而不是直接调用它。
However, the method copies a pointer to the selected function into a local variable, and then calls the function with the call method of the function object, rather than calling it directly.
应用推荐