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

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.032 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site