[linux-pm] what handles disk drive(s) shutdown?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 10 February 2006 18:06, Pavel Machek wrote:
> 
> 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?

-- 
Dmitry

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux