Suresh/
static struct tq_struct mc_tq_task = { 0, 0, 0, 0 };
static wait_queue_head_t mc_tq_wait;
void defered_proc(void * ptr)
{
// do some context specific stuff here ..
wake_up_interruptible( &mc_tq_wait);
}
static void intr_handler(void *ptr)
{
mc_tq_task.routine = defered_proc;
mc_tq_task.data = dev;
init_waitqueue_head(&mc_tq_wait);
queue_task(&mc_tq_task, &tq_scheduler);
interruptible_sleep_on(&mc_tq_wait);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/