summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-10-14 15:05:13 +0100
committerMark Brown <broonie@kernel.org>2026-10-14 15:05:13 +0100
commit6783d5228ec938bdbb4129f076efcc3f7bf79008 (patch)
tree2aa622c62df66921c3615bf3e7658cfa7d810ecb /include/linux
parent78871c469a1afad7a24ebfb18200adf493fcb838 (diff)
parentf663062d717eac2c01f77eaf321fa630528e672d (diff)
downloadlinux-next-6783d5228ec938bdbb4129f076efcc3f7bf79008.tar.gz
linux-next-6783d5228ec938bdbb4129f076efcc3f7bf79008.zip
Merge branch 'for-next' of https://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching.git
Diffstat (limited to 'include/linux')
-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;