Re: [PATCH] arch-specific callout in panic()

From: Keith Owens
Date: Mon Feb 23 2004 - 23:27:46 EST


On Mon, 23 Feb 2004 12:33:09 -0600,
Mike Strosaker <strosake@xxxxxxxxxxxxxx> wrote:
>Andrew Morton wrote:
>> We have the panic_notifier_list in there. Cannot you hook into that?
>
>panic_notifier_list is not used becasue we need to ensure that the
>actions in machine_panic are the last ones taken.

panic_notifier_list, like all entries defined via
notifier_chain_register, is run in priority order, with LIFO order
within priority. Register machine_panic first with priority INT_MIN
and it gets called last.

Which reduces your problem to "which one of the 57 initcall levels do I
use for registering machine_panic first on the panic_notifier_list"?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/