Re: [PATCH 07/14] mce3: pass mce info to EDAC for decoding

From: Hidetoshi Seto
Date: Mon Jul 20 2009 - 23:42:28 EST


H. Peter Anvin wrote:
> If you want modules to change the behavior, you're talking about a
> *dynamic* change -- the call will point to different things at different
> points in time -- so you need another mechanism, i.e. function pointers.

Just FYI, machine check handler on ia64 has such function pointer.

[arch/ia64/kernel/mca.c]
826 /* Function pointer for extra MCA recovery */
827 int (*ia64_mca_ucmc_extension)
828 (void*,struct ia64_sal_os_state*)
829 = NULL;


Thanks,
H.Seto

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