Re: Driver callback routine when panic() is called

Keith Owens (kaos@ocs.com.au)
Sat, 17 Nov 2001 22:38:00 +1100


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, ...)

See the kdb patch[1] for example code. Remember that all but one cpus
are dead by the time you are called, I hope all your IRQs go to the
single live cpu.

[1] ftp://oss.sgi.com/projects/kdb/download/ix86

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