Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sys_sched_yield - yield the current processor to other threads.* This function yields the current CPU to other tasks. If there are no* other threads running on this CPU then this function will return.* Return: 0.

Proto:static void do_sched_yield(void)

Type:void

Parameter:Nothing

5601  rq = this_rq_lock_irq( & rf)
5603  schedstat_inc(yld_count)
5604  yield_task(rq)
5610  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
5611  rq_unlock(rq, & rf)
5612  sched_preempt_enable_no_resched()
5614  schedule()
Caller
NameDescribe
sys_sched_yield
yieldyield - yield the current processor to other threads