<p><br>
On May 3, 2012 8:37 PM, "夏业添" <<a href="mailto:summerxyt@gmail.com">summerxyt@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I want to use workqueue in my irq handler. Some materials say that I can use<br>
><br>
> INIT_WORK( &work, function, &data );<br>
><br>
> to initialize work, whose type is struct work_struct, and data is<br>
> something should be passed to function.<br>
> however, it seems that now the macro INIT_WORK() only accept two<br>
> parameters:&work and function.<br>
><br>
> My problem is how to pass data to the function and why they change that macro?<br>
><br>
> Thanks!<br>
><br>
May be you are looking for something like this:<br>
<a href="http://www.linuxforums.org/forum/kernel/183688-init_work-two-arguments.html">http://www.linuxforums.org/forum/kernel/183688-init_work-two-arguments.html</a></p>
<p>~chetan _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</p>