Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This work can be performed periodically to finish patching or unpatching any* "straggler" tasks which failed to transition in the first attempt.

Proto:static void klp_transition_work_fn(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
struct work_struct *work
34  mutex_lock( & klp_mutex is a coarse lock which serializes access to klp data)
36  If klp_transition_patch Then 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.
39  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.