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