Problem of workqueue
Chetan Nanda
chetannanda at gmail.com
Thu May 3 12:48:56 EDT 2012
On May 3, 2012 8:37 PM, "夏业添" <summerxyt at gmail.com> wrote:
>
> Hi,
>
> I want to use workqueue in my irq handler. Some materials say that I can
use
>
> INIT_WORK( &work, function, &data );
>
> to initialize work, whose type is struct work_struct, and data is
> something should be passed to function.
> however, it seems that now the macro INIT_WORK() only accept two
> parameters:&work and function.
>
> My problem is how to pass data to the function and why they change that
macro?
>
> Thanks!
>
May be you are looking for something like this:
http://www.linuxforums.org/forum/kernel/183688-init_work-two-arguments.html
~chetan _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120503/2b24ef27/attachment.html
More information about the Kernelnewbies
mailing list