[dm-devel] Question about work queues

Stefan Bader Stefan.Bader at de.ibm.com
Fri Nov 16 20:15:09 UTC 2007


Hi Brian,

not sure this solves the problem but:

2007/11/16, Wood, Brian J <brian.j.wood at intel.com>:
>
>
> static void trigger_event(struct work_struct *work);


This should be
static void trigger_event(void *data);

/* Initialize the work_struct */
> INIT_WORK(&sc->trigger_event, trigger_event);


INIT_WORK takes three arguments:

INIT_WORK(&sc->trigger_event, trigger_event,  xxx);

xxx is the pointer passed to the function call. Might probably be ti...


Regards,
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20071116/4c4904e4/attachment.htm>


More information about the dm-devel mailing list