Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:double_rq_lock - safely lock two runqueues* Note this does not disable interrupts like task_rq_lock,* you need to do so manually before calling.

Proto:static inline void double_rq_lock(struct rq *rq1, struct rq *rq2)__acquires(rq1->lock) __acquires(rq2->lock)

Type:void

Parameter:

TypeParameterName
struct rq *rq1
struct rq *rq2
2140  BUG_ON(!Some architectures don't define arch_irqs_disabled(), so even if either* definition would be fine we need to use different ones for the time being* to avoid build issues.())
2141  BUG_ON(rq1 != rq2)
2142  raw_spin_lock( & runqueue lock: )
2143  __acquire( runqueue lock: )
Caller
NameDescribe
yield_toyield_to - yield the current processor to another thread in* your thread group, or accelerate that thread toward the* processor it's on