From: Alan Robertson <alanr@unix.sh>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: "Isabelle, Francois" <Francois.Isabelle@ca.kontron.com>,
"Linux-Ha (E-mail)" <linux-ha@muc.de>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: Handling NMI in a kernel module
Date: Sat, 27 Jul 2002 07:50:56 -0600 [thread overview]
Message-ID: <3D42A540.7000904@unix.sh> (raw)
In-Reply-To: 1027773582.17404.2.camel@irongate.swansea.linux.org.uk
Alan Cox wrote:
> On Sat, 2002-07-27 at 04:30, Alan Robertson wrote:
>
>>Alan Cox wrote:
>>
>>>I've been tracking other lists. The current state is very much that we
>>>need the dual notifier. I now have some draft code that allows us to do
>>>this even on hardware that doesn't support it, and where the read()
>>>function gets told when an event is about to occur
>>>
>>I know what had been requested from the telco crowd was the ability to
>>register a function to get called (in the kernel) when an event was about to
>>occur.
>>
>
> They can already do that anyway. Its called add_timer() 8)
Given how vaguely I stated it, I guess that's what I deserve ;-)
However, it's not quite what I had in mind. ;-)
You'd like to see the driver add a timer when someone opens the device, and
removes and readds it each time they tickle the watchdog timer. It's this
interaction which the driver has to provide support for.
Also, you'd like to specify how long before the watchdog timer goes off that
it "pops".
So, you really want something like register_watchdog_pretimeout() and pass
it a function and a pretimeout time in ticks or milliseconds, or whatever.
You'd also need an unregister_watchdog_pretimeout() function of course as
well... IIRC, this is what I mentioned on the watchdog timer list.
-- Alan Robertson
alanr@unix.sh
next prev parent reply other threads:[~2002-07-27 13:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-23 17:37 Handling NMI in a kernel module Isabelle, Francois
2002-07-23 18:27 ` John Levon
2002-07-23 22:30 ` Alan Cox
2002-07-26 21:55 ` Alan Robertson
2002-07-27 2:05 ` Alan Cox
2002-07-27 3:30 ` Alan Robertson
2002-07-27 12:39 ` Alan Cox
2002-07-27 13:50 ` Alan Robertson [this message]
2002-07-27 3:44 ` Jonathan Lundell
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=3D42A540.7000904@unix.sh \
--to=alanr@unix.sh \
--cc=Francois.Isabelle@ca.kontron.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-ha@muc.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox