Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Sends a fake signal to all non-kthread tasks with TIF_PATCH_PENDING set.* Kthreads with TIF_PATCH_PENDING set are woken up.

Proto:static void klp_send_signals(void)

Type:void

Parameter:Nothing

347  If klp_signals_cnt == SIGNALS_TIMEOUT Then pr_notice("signaling remaining tasks\n")
350  read_lock( & tasklist_lock)
351  Careful: this is a double loop, 'break' won't work as expected. (g, task)
352  If Not klp_patch_pending(task) Then Continue
367  Else
373  signal_wake_up(task, 0)
377  read_unlock( & tasklist_lock)
Caller
NameDescribe
klp_try_complete_transitionTry 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.