Messages in this thread |  | | Subject | Re: Driver callback routine when panic() is called | From | Georg Nikodym <> | Date | 17 Nov 2001 09:49:16 -0500 |
| |
On Sat, 2001-11-17 at 06:38, Keith Owens wrote: > On Fri, 16 Nov 2001 20:30:23 -0500, > "Pinyowattayakorn, Naris" <np151003@exchange.SanDiegoCA.NCR.COM> wrote: > >Is there any call that can be used for a driver to register system crash > >callback routines. Thus, If panic( ) is called, such a callback can save > >device-state information to be written into the system crash dump file. > > notifier_chain_register(&panic_notifier_list, ...)
Pat O'Rourke also posted a patch[1] that exposes this nicely (panic_notifier_list is currently static in panic.c).
I've been using this on architectures for which I don't yet have kdb.
[1] http://www.uwsg.iu.edu/hypermail/linux/kernel/0106.1/0978.html
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |