xref: /linux/kernel/livepatch/transition.h (revision 597473720f4dc69749542bfcfed4a927a43d935e)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2d83a7cb3SJosh Poimboeuf #ifndef _LIVEPATCH_TRANSITION_H
3d83a7cb3SJosh Poimboeuf #define _LIVEPATCH_TRANSITION_H
4d83a7cb3SJosh Poimboeuf 
5d83a7cb3SJosh Poimboeuf #include <linux/livepatch.h>
6d83a7cb3SJosh Poimboeuf 
7d83a7cb3SJosh Poimboeuf extern struct klp_patch *klp_transition_patch;
8d83a7cb3SJosh Poimboeuf 
9d83a7cb3SJosh Poimboeuf void klp_init_transition(struct klp_patch *patch, int state);
10d83a7cb3SJosh Poimboeuf void klp_cancel_transition(void);
11d83a7cb3SJosh Poimboeuf void klp_start_transition(void);
12d83a7cb3SJosh Poimboeuf void klp_try_complete_transition(void);
13d83a7cb3SJosh Poimboeuf void klp_reverse_transition(void);
14*c99a2be7SMiroslav Benes void klp_force_transition(void);
15d83a7cb3SJosh Poimboeuf 
16d83a7cb3SJosh Poimboeuf #endif /* _LIVEPATCH_TRANSITION_H */
17