projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
livepatch: introduce patch/func-walking helpers
[cascardo/linux.git]
/
include
/
linux
/
livepatch.h
diff --git
a/include/linux/livepatch.h
b/include/linux/livepatch.h
index
fe45f2f
..
31db7a0
100644
(file)
--- a/
include/linux/livepatch.h
+++ b/
include/linux/livepatch.h
@@
-123,6
+123,12
@@
struct klp_patch {
enum klp_state state;
};
enum klp_state state;
};
+#define klp_for_each_object(patch, obj) \
+ for (obj = patch->objs; obj->funcs; obj++)
+
+#define klp_for_each_func(obj, func) \
+ for (func = obj->funcs; func->old_name; func++)
+
int klp_register_patch(struct klp_patch *);
int klp_unregister_patch(struct klp_patch *);
int klp_enable_patch(struct klp_patch *);
int klp_register_patch(struct klp_patch *);
int klp_unregister_patch(struct klp_patch *);
int klp_enable_patch(struct klp_patch *);