Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\sched.h Create Date:2022-07-28 05:59:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:task_running

Proto:static inline int task_running(struct rq *rq, struct task_struct *p)

Type:int

Parameter:

TypeParameterName
struct rq *rq
struct task_struct *p
1627  Return task_current(rq, p)
Caller
NameDescribe
set_user_nice
yield_toyield_to - yield the current processor to another thread in* your thread group, or accelerate that thread toward the* processor it's on
klp_try_switch_taskTry to safely switch a task to the target patch state. If it's currently* running, or it's sleeping on a to-be-patched or to-be-unpatched function, or* if the stack is unreliable, return false.