diff options
author | Corey Minyard <cminyard@mvista.com> | 2018-03-28 21:19:25 +0300 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2018-04-18 18:22:47 +0300 |
commit | 91e2dd0a47bae19600f13dcc9e0761082c50afa6 (patch) | |
tree | a9a811d798ce57a7c4cd48434b4e4e086e4a1c8e /include/linux/ipmi.h | |
parent | e2384917044ec27dd61acb9c3591eaa4c8fd4667 (diff) | |
download | linux-91e2dd0a47bae19600f13dcc9e0761082c50afa6.tar.xz |
ipmi: Add a panic handler for IPMI users
Users of the IPMI code had their own panic handlers, but the
order was not necessarily right, the base IPMI code would
need to handle the panic first, and the user had no way to
know if the IPMI interface could run at panic time.
Add a panic handler to the user interface, it is called if
non-NULL and the interface the user is on is capable of panic
handling. It also cleans up the panic log handling a bit to
reuse the existing interface loop in the main panic handler.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'include/linux/ipmi.h')
-rw-r--r-- | include/linux/ipmi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/ipmi.h b/include/linux/ipmi.h index 8b0626cec980..39a29fb3131b 100644 --- a/include/linux/ipmi.h +++ b/include/linux/ipmi.h @@ -77,6 +77,12 @@ struct ipmi_user_hndl { /* Called when the interface detects a watchdog pre-timeout. If this is NULL, it will be ignored for the user. */ void (*ipmi_watchdog_pretimeout)(void *handler_data); + + /* + * If not NULL, called at panic time after the interface has + * been set up to handle run to completion. + */ + void (*ipmi_panic_handler)(void *handler_data); }; /* Create a new user of the IPMI layer on the given interface number. */ |