Convert INIT_WORK to INIT_DELAYED_WORK with argument
Hello:
I'm converting some device drivers from CentOS 5.x (2.6.18) to CentOS 6.0 (2.6.32) and the INIT_WORK macros have gone away. I've got to pass an argument to the worker and no where (Google, etc) have I seen how to do this with the INIT_DELAYED_WORK, the recommended replacement. Is there a field in the delayed_work structure that I could use to achieve this passing of the argument? Thanks in advance |
INIT_WORK and INIT_WORK_DELAYED both do exist but you can not pass an argument to them during the call.
work_struct structure has a data field which you can initialize using atomic_long_set See if this post helps http://tuxthink.blogspot.com/2011/09...-creation.html There might be other methods to do it too. |
All times are GMT -5. The time now is 12:48 PM. |