函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:36:54
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:struct task_struct *idle_task(int cpu)

返回类型:struct task_struct

参数:

类型参数名称
intcpu
4675  返回( & ( * ({
4675  cpu
4675  ({
4675  循环
4675  const void * __vpp_verify = NULL
4675  当0循环
4675  runqueues的地址
4675  })
4675  })))->idle
调用者
名称描述
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