Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:36:18
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dle_task - return the idle task for a given CPU.*@cpu: the processor in question.* Return: The idle task for the CPU @cpu.

Proto:struct task_struct *idle_task(int cpu)

Type:struct task_struct

Parameter:

TypeParameterName
intcpu
4675  Return ( & ( * ({
4675  cpu
4675  ({
4675  Do
4675  const void * __vpp_verify = NULL
4675  When 0 cycle
4675  &runqueues
4675  })
4675  })))->idle
Caller
NameDescribe
klp_complete_transitionThe transition to the target patch state is complete. Clean up the data* structures.
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.
klp_start_transitionStart the transition to the specified target patch state so tasks can begin* switching to it.
klp_init_transitionInitialize 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.
klp_reverse_transitionThis function can be called in the middle of an existing transition to* reverse the direction of the target patch state. This can be done to* effectively cancel an existing enable or disable operation if there are any
klp_force_transitionDrop TIF_PATCH_PENDING of all tasks on admin's request. This forces an* existing transition to finish.* NOTE: klp_update_patch_state(task) requires the task to be inactive or* 'current'. This is not the case here and the consistency model could be* broken
getthread
start_graph_tracingAllocate a return stack for each task