diff options
author | Joe Lawrence <joe.lawrence@redhat.com> | 2017-08-31 16:37:41 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-09-14 23:06:12 +0200 |
commit | 439e7271dc2b63de379e37971dc2f64d71e24f8a (patch) | |
tree | c3dd63d08e743a63936c24949b456d4522003022 /kernel/livepatch/Makefile | |
parent | dcba71086e0d1abf4f00cd381530b11d0db7fa1d (diff) | |
download | lwn-439e7271dc2b63de379e37971dc2f64d71e24f8a.tar.gz lwn-439e7271dc2b63de379e37971dc2f64d71e24f8a.zip |
livepatch: introduce shadow variable API
Add exported API for livepatch modules:
klp_shadow_get()
klp_shadow_alloc()
klp_shadow_get_or_alloc()
klp_shadow_free()
klp_shadow_free_all()
that implement "shadow" variables, which allow callers to associate new
shadow fields to existing data structures. This is intended to be used
by livepatch modules seeking to emulate additions to data structure
definitions.
See Documentation/livepatch/shadow-vars.txt for a summary of the new
shadow variable API, including a few common use cases.
See samples/livepatch/livepatch-shadow-* for example modules that
demonstrate shadow variables.
[jkosina@suse.cz: fix __klp_shadow_get_or_alloc() comment as spotted by
Josh]
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'kernel/livepatch/Makefile')
-rw-r--r-- | kernel/livepatch/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/livepatch/Makefile b/kernel/livepatch/Makefile index 2b8bdb1925da..b36ceda6488e 100644 --- a/kernel/livepatch/Makefile +++ b/kernel/livepatch/Makefile @@ -1,3 +1,3 @@ obj-$(CONFIG_LIVEPATCH) += livepatch.o -livepatch-objs := core.o patch.o transition.o +livepatch-objs := core.o patch.o shadow.o transition.o |