lkml.org 
[lkml]   [2004]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectwait_event_interruptible
Hello,

I created a kernel thread inside of my driver by calling the function
kernel_thread with a function pointer. Now this thread calls daemonize
and allow_signal and then it runs a forever loop until it is terminated
by the kernel (unloading the driver etc). And because it is written in
the documentation I put the thread asleep by calling
wait_event_interruptible with a wait queue called "dpn_wq_run" inside
the forever loop. Now is it right that a wake_up_interruptible in the
ISR has to wake up the thread so it continues its work? If yes... why
isn't that working for me? I called wait_event_interruptible with that
dpn_wq_run inside the kernel thread and do a wake_up_interruptible
inside the ISR with the same dpn_wq_run. But my kernel thread won't wake
up. Is there anything else I have to do to the wait queue, but calling
init_wait_queue on it?

Thanks a lot

Hendrik
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.051 / U:1.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site