- 16 9月, 2017 1 次提交
-
-
由 Jiri Kosina 提交于
... therefore make it static. Fixes: 439e7271 ("livepatch: introduce shadow variable API") Acked-by: NJoe Lawrence <joe.lawrence@redhat.com> Signed-off-by: NJiri Kosina <jkosina@suse.cz>
-
- 15 9月, 2017 1 次提交
-
-
由 Joe Lawrence 提交于
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: NJoe Lawrence <joe.lawrence@redhat.com> Acked-by: NJosh Poimboeuf <jpoimboe@redhat.com> Acked-by: NMiroslav Benes <mbenes@suse.cz> Signed-off-by: NJiri Kosina <jkosina@suse.cz>
-