mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* shutdown process
@ 2004-09-22  7:51 manomugdha biswas
  2004-09-22 20:46 ` Randy.Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: manomugdha biswas @ 2004-09-22  7:51 UTC (permalink / raw)
  To: linux-kernel

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??

Thanks and Regards,
Manomugdha

=====
Manomugdha Biswas

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: shutdown process
  2004-09-22  7:51 shutdown process manomugdha biswas
@ 2004-09-22 20:46 ` Randy.Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy.Dunlap @ 2004-09-22 20:46 UTC (permalink / raw)
  To: manomugdha biswas; +Cc: linux-kernel

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, &notif_block);
or
register_reboot_notifier(&notif_block);


--
~Randy
MOTD:  Always include version info.
(Again.  Sometimes I think ln -s /usr/src/linux/.config .signature)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-22 20:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-22  7:51 shutdown process manomugdha biswas
2004-09-22 20:46 ` Randy.Dunlap

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