Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\livepatch\core.c Create Date:2022-07-28 10:30:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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>*

Proto:static int __klp_disable_patch(struct klp_patch *patch)

Type:int

Parameter:

TypeParameterName
struct klp_patch *patch
894  If WARN_ON(!enabled) Then Return -EINVAL
897  If klp_transition_patch Then Return -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  If patched Then klp_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  Return 0
Caller
NameDescribe
enabled_store