summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-09-17 21:09:27 +0100
committerMark Brown <broonie@kernel.org>2026-09-17 21:09:27 +0100
commit6bf2633dd3eb0a10630230eae0e9f5d66d8f779c (patch)
tree3bc9fb26923d410668fbf2402528c4ce088aba4d /include
parent51c8c07a3aa2d5ac30fce74997e88fbb99c5d35d (diff)
parent5d791d3396ca4c9e5fd9d20b49386c20d8179eb8 (diff)
downloadlinux-next-6bf2633dd3eb0a10630230eae0e9f5d66d8f779c.tar.gz
linux-next-6bf2633dd3eb0a10630230eae0e9f5d66d8f779c.zip
Merge branch 'for-next' of https://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching.git
Diffstat (limited to 'include')
-rw-r--r--include/linux/livepatch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/livepatch.h b/include/linux/livepatch.h
index ba9e3988c07c..5f74f79c22b4 100644
--- a/include/linux/livepatch.h
+++ b/include/linux/livepatch.h
@@ -33,6 +33,7 @@
* @kobj: kobject for sysfs resources
* @node: list node for klp_object func_list
* @stack_node: list node for klp_ops func_stack list
+ * @obj: back pointer to the owning object
* @old_size: size of the old function
* @new_size: size of the new function
* @nop: temporary patch to use the original code again; dyn. allocated
@@ -72,6 +73,7 @@ struct klp_func {
struct kobject kobj;
struct list_head node;
struct list_head stack_node;
+ struct klp_object *obj;
unsigned long old_size, new_size;
bool nop;
bool patched;
@@ -86,6 +88,7 @@ struct klp_func {
* @kobj: kobject for sysfs resources
* @func_list: dynamic list of the function entries
* @node: list node for klp_patch obj_list
+ * @patch: back pointer to the owning patch
* @mod: kernel module associated with the patched object
* (NULL for vmlinux)
* @dynamic: temporary object for nop functions; dynamically allocated
@@ -101,6 +104,7 @@ struct klp_object {
struct kobject kobj;
struct list_head func_list;
struct list_head node;
+ struct klp_patch *patch;
struct module *mod;
bool dynamic;
bool patched;