Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched.h Create Date:2022-07-28 05:59:47
Last Modify:2021-07-28 10:30:23 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:test_tsk_need_resched

Proto:static inline int test_tsk_need_resched(struct task_struct *tsk)

Type:int

Parameter:

TypeParameterName
struct task_struct *tsk
1772  Return Value for the false possibility is greater at compile time(test_tsk_thread_flag(tsk, scheduling necessary ))
Caller
NameDescribe
resched_currsched_curr - mark rq's current task 'to be rescheduled now'.* On UP this means the setting of the need_resched flag, on SMP it* might also involve a cross-CPU call to trigger the scheduler on* the target CPU.
check_preempt_curr
check_preempt_wakeupPreempt the current task with a newly woken task if needed: