函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\livepatch\core.c Create Date:2022-07-27 11:30:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Sysfs Interface* /sys/kernel/livepatch* /sys/kernel/livepatch/<patch>* /sys/kernel/livepatch/<patch>/enabled* /sys/kernel/livepatch/<patch>/transition* /sys/kernel/livepatch/<patch>/force* /sys/kernel/livepatch/<patch>/<object>*

函数原型:static int __klp_disable_patch(struct klp_patch *patch)

返回类型:int

参数:

类型参数名称
struct klp_patch *patch
894  如果WARN_ON(!enabled)则返回:负EINVAL
897  如果klp_transition_patch则返回:负EBUSY
900  Initialize the global target patch state and all tasks to the initial patch* state, and initialize all function transition states to true in preparation* for patching or unpatching.
902  klp_for_each_object(patch, obj)
903  如果patchedklp_pre_unpatch_callback(obj)
913  smp_wmb()
915  Start the transition to the specified target patch state so tasks can begin* switching to it.
916  enabled = false
917  Try to switch all remaining tasks to the target patch state by walking the* stacks of sleeping tasks and looking for any to-be-patched or* to-be-unpatched functions. If such functions are found, the task can't be* switched yet.
919  返回:0
调用者
名称描述
enabled_store