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