public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* wait_event_interruptible
@ 2004-12-07  8:19 Hendrik Wiese
  2004-12-07 13:32 ` wait_event_interruptible Roland Dreier
  0 siblings, 1 reply; 3+ messages in thread
From: Hendrik Wiese @ 2004-12-07  8:19 UTC (permalink / raw)
  To: LKLM

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-07 13:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-07  8:19 wait_event_interruptible Hendrik Wiese
2004-12-07 13:32 ` wait_event_interruptible Roland Dreier
2004-12-07 13:56   ` wait_event_interruptible Hendrik Wiese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox