First page Back Continue Last page Overview Graphics
Tasklets
Declare the tasklet in the module source file:
DECLARE_TASKLET (module_tasklet, /* name */
module_do_tasklet, /* function */
data /* params */
);
Schedule the tasklet in the top half part (interrupt handler):
tasklet_schedule(&module_tasklet);
Note that a tasklet_hi_schedule function is available to define high priority tasklets to run before ordinary ones.
Tasklets are executed with all interrupts enabled, but in interrupt context, so sleeping is not allowed.