diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/livepatch.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/livepatch.h b/include/linux/livepatch.h index fe45f2f02c8d..31db7a05dd36 100644 --- a/include/linux/livepatch.h +++ b/include/linux/livepatch.h | |||
| @@ -123,6 +123,12 @@ struct klp_patch { | |||
| 123 | enum klp_state state; | 123 | enum klp_state state; |
| 124 | }; | 124 | }; |
| 125 | 125 | ||
| 126 | #define klp_for_each_object(patch, obj) \ | ||
| 127 | for (obj = patch->objs; obj->funcs; obj++) | ||
| 128 | |||
| 129 | #define klp_for_each_func(obj, func) \ | ||
| 130 | for (func = obj->funcs; func->old_name; func++) | ||
| 131 | |||
| 126 | int klp_register_patch(struct klp_patch *); | 132 | int klp_register_patch(struct klp_patch *); |
| 127 | int klp_unregister_patch(struct klp_patch *); | 133 | int klp_unregister_patch(struct klp_patch *); |
| 128 | int klp_enable_patch(struct klp_patch *); | 134 | int klp_enable_patch(struct klp_patch *); |
