lkml.org 
[lkml]   [2001]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Driver callback routine when panic() is called
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.156 / U:0.288 seconds]
©2003-2014 Jasper Spaans. Advertise on this site