From: "Veda N" <veda74@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: kernel thread does not wakeup
Date: Tue, 8 Apr 2008 21:45:14 +0530 [thread overview]
Message-ID: <a5eaedfa0804080915va0aa272ye2869b904a86dc69@mail.gmail.com> (raw)
Hi,
I am having a driver during initialisation i create a thread using
kthread_run.
As soon as the initialisation function is complete. I start getting
interrupts.
The kernel thread waits on a struct completion using
wait_for_completion_interruptib
le function.
Whenever an interrupt arrives i call the function complete to
wakeup the thread.
For somereason the kernel thread does not awake.
I have put some debug prints to see if the address struct
completion is the same.
It gives the address to be same.
I dont know why the kernel thread does not wakeup.
Is there any restriction of using kernel threads during the linux
kernel bootup?.
What i am trying to say is can i make a thread go sleep during linux
kernel bootup
and wake it up during kernel bootup upon occurance of an interrupt.
Regards,
vedan
reply other threads:[~2008-04-08 16:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=a5eaedfa0804080915va0aa272ye2869b904a86dc69@mail.gmail.com \
--to=veda74@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®