From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Juergen Oberhofer <j.oberhofer@gmx.at>
Cc: linux-kernel@vger.kernel.org
Subject: Re: wake_up_interruptible problem
Date: Mon, 1 Dec 2003 11:43:15 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.53.0312011138350.31222@chaos> (raw)
On -1 xxx -1, Juergen Oberhofer wrote:
> Hi,
> I'm trying to implement a timer, which on each timer interrupt wakes up
> every process that got blocked by a read call.
> My problem is the following: if I'm insmod'ing the module (I've attached the
> file) the execution gets
> blocked on the wake_up_interruptible(&timer_queue); call. If I'm
> uncommenting this line everything
> goes smooth and the timer counts without problems. Does somebody have a
> hint? Some ideas?
> Regards
> Juergen
Well you don't provide enough code to actually compile NotGood(tm).
I would guess that you failed to do:
init_waitqueue_head(&timer_queue);
... in your initialization code, so wake_up_interruptible() is
waiting forever...... Look at the drivers provided in the
kernel source. All the initialization stuff is mandatory.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.22 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.
next reply other threads:[~2003-12-01 16:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-01 16:43 Richard B. Johnson [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-12-01 16:25 wake_up_interruptible problem Juergen Oberhofer
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=Pine.LNX.4.53.0312011138350.31222@chaos \
--to=root@chaos.analogic.com \
--cc=j.oberhofer@gmx.at \
--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;
as well as URLs for NNTP newsgroup(s).