From: Pavel Machek <pavel@ucw.cz>
To: Dmitry Torokhov <dtor_core@ameritech.net>
Cc: linux-pm@lists.osdl.org, Pavel Machek <pavel@ucw.cz>
Subject: Re: what handles disk drive(s) shutdown?
Date: Thu, 16 Feb 2006 00:30:06 +0100 [thread overview]
Message-ID: <20060215233006.GA3490@openzaurus.ucw.cz> (raw)
In-Reply-To: <200602102150.38832.dtor_core@ameritech.net>
[-- Attachment #1: Type: text/plain, Size: 639 bytes --]
> > void kernel_shutdown_prepare(enum system_states state)
> > {
> > notifier_call_chain(&reboot_notifier_list,
> > (state == SYSTEM_HALT)?SYS_HALT:SYS_POWER_OFF, NULL);
> > system_state = state;
> > device_shutdown();
> > }
> >
> > device_shutdown() should do it, AFAICT.
> >
> > If you want to listen to such event, you should just register your
> > driver with sysfs and implement .suspend() method. But I believe PATA
> > does that already...
>
> You mean .shutdown() method, not .suspend(), right?
yep, sorry.
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
prev parent reply other threads:[~2006-02-15 23:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-09 22:11 what handles disk drive(s) shutdown? Randy.Dunlap
2006-02-10 2:50 ` Alan Stern
2006-02-10 22:56 ` Pavel Machek
2006-02-10 22:59 ` Randy.Dunlap
2006-02-10 23:06 ` Pavel Machek
2006-02-10 23:08 ` Randy.Dunlap
2006-02-10 23:16 ` Pavel Machek
2006-02-11 2:50 ` Dmitry Torokhov
2006-02-15 23:30 ` Pavel Machek [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=20060215233006.GA3490@openzaurus.ucw.cz \
--to=pavel@ucw.cz \
--cc=dtor_core@ameritech.net \
--cc=linux-pm@lists.osdl.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