From: "Randy.Dunlap" <rddunlap@osdl.org>
To: manomugdha biswas <manomugdhab@yahoo.co.in>
Cc: linux-kernel@vger.kernel.org
Subject: Re: shutdown process
Date: Wed, 22 Sep 2004 13:46:35 -0700 [thread overview]
Message-ID: <20040922134635.44ca34c8.rddunlap@osdl.org> (raw)
In-Reply-To: <20040922075126.45031.qmail@web8510.mail.in.yahoo.com>
On Wed, 22 Sep 2004 08:51:26 +0100 (BST) manomugdha biswas wrote:
| Hi all,
| I have written a module and loaded into kernel by
| insmod. I want to let my module know when the system
| is shutdown. How to let my module know that the system
| is going to shutdown??
See sig. Answering for Linux 2.6.x, but it looks like almost
no changes here from 2.4 to 2.6:
Call notifier_chain_register(&reboot_notifier_list, ¬if_block);
or
register_reboot_notifier(¬if_block);
--
~Randy
MOTD: Always include version info.
(Again. Sometimes I think ln -s /usr/src/linux/.config .signature)
prev parent reply other threads:[~2004-09-22 20:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-22 7:51 manomugdha biswas
2004-09-22 20:46 ` Randy.Dunlap [this message]
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=20040922134635.44ca34c8.rddunlap@osdl.org \
--to=rddunlap@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manomugdhab@yahoo.co.in \
/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
Powered by JetHome