cregit-Linux how code gets into the kernel

Release 4.15 kernel/livepatch/core.h

Directory: kernel/livepatch
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LIVEPATCH_CORE_H

#define _LIVEPATCH_CORE_H

#include <linux/livepatch.h>

extern struct mutex klp_mutex;


static inline bool klp_is_object_loaded(struct klp_object *obj) { return !obj->name || obj->mod; }

Contributors

PersonTokensPropCommitsCommitProp
Joe Lawrence22100.00%1100.00%
Total22100.00%1100.00%


static inline int klp_pre_patch_callback(struct klp_object *obj) { int ret = 0; if (obj->callbacks.pre_patch) ret = (*obj->callbacks.pre_patch)(obj); obj->callbacks.post_unpatch_enabled = !ret; return ret; }

Contributors

PersonTokensPropCommitsCommitProp
Joe Lawrence4486.27%150.00%
Petr Mladek713.73%150.00%
Total51100.00%2100.00%


static inline void klp_post_patch_callback(struct klp_object *obj) { if (obj->callbacks.post_patch) (*obj->callbacks.post_patch)(obj); }

Contributors

PersonTokensPropCommitsCommitProp
Joe Lawrence32100.00%1100.00%
Total32100.00%1100.00%


static inline void klp_pre_unpatch_callback(struct klp_object *obj) { if (obj->callbacks.pre_unpatch) (*obj->callbacks.pre_unpatch)(obj); }

Contributors

PersonTokensPropCommitsCommitProp
Joe Lawrence32100.00%1100.00%
Total32100.00%1100.00%


static inline void klp_post_unpatch_callback(struct klp_object *obj) { if (obj->callbacks.post_unpatch_enabled && obj->callbacks.post_unpatch) (*obj->callbacks.post_unpatch)(obj); obj->callbacks.post_unpatch_enabled = false; }

Contributors

PersonTokensPropCommitsCommitProp
Joe Lawrence3882.61%150.00%
Petr Mladek817.39%150.00%
Total46100.00%2100.00%

#endif /* _LIVEPATCH_CORE_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Joe Lawrence17185.07%125.00%
Petr Mladek157.46%125.00%
Jiri Kosina146.97%125.00%
Greg Kroah-Hartman10.50%125.00%
Total201100.00%4100.00%
Directory: kernel/livepatch
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.