aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ipmi.h
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2018-04-05 17:44:12 -0400
committerCorey Minyard <cminyard@mvista.com>2018-04-18 11:22:54 -0400
commitb7780dab90e8da302bc7d0d1b39b538b822017e8 (patch)
tree46a83506c977f5a8b2a81f9535b1aabf1441ad36 /include/linux/ipmi.h
parent6aa2dd0092d2762cc12cccf5142313858f4153a4 (diff)
ipmi: Add shutdown functions for users and interfaces
Since things that IPMI uses can be hot-swapped, the users and interfaces really need to be able to handle this. Add the functions so the users and interfaces can implement them, the actual function will be added after everything is ready. Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'include/linux/ipmi.h')
-rw-r--r--include/linux/ipmi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/ipmi.h b/include/linux/ipmi.h
index 3474f04cf9aa..d89bea1e457a 100644
--- a/include/linux/ipmi.h
+++ b/include/linux/ipmi.h
@@ -97,6 +97,14 @@ struct ipmi_user_hndl {
97 * been set up to handle run to completion. 97 * been set up to handle run to completion.
98 */ 98 */
99 void (*ipmi_panic_handler)(void *handler_data); 99 void (*ipmi_panic_handler)(void *handler_data);
100
101 /*
102 * Called when the interface has been removed. After this returns
103 * the user handle will be invalid. The interface may or may
104 * not be usable when this is called, but it will return errors
105 * if it is not usable.
106 */
107 void (*shutdown)(void *handler_data);
100}; 108};
101 109
102/* Create a new user of the IPMI layer on the given interface number. */ 110/* Create a new user of the IPMI layer on the given interface number. */