From: Hendrik Wiese <7.e.Q@syncro-community.de>
To: LKLM <linux-kernel@vger.kernel.org>
Subject: wait_event_interruptible
Date: Tue, 07 Dec 2004 09:19:36 +0100 [thread overview]
Message-ID: <41B56798.4070505@syncro-community.de> (raw)
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
next reply other threads:[~2004-12-07 8:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-07 8:19 Hendrik Wiese [this message]
2004-12-07 13:32 ` wait_event_interruptible Roland Dreier
2004-12-07 13:56 ` wait_event_interruptible Hendrik Wiese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41B56798.4070505@syncro-community.de \
--to=7.e.q@syncro-community.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.