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

Hidetoshi Seto
2009-07-21T03:42:24Z

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