函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void klp_transition_work_fn(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
34  mutex_lock( & klp_mutex is a coarse lock which serializes access to klp data)
36  如果klp_transition_patchTry 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.