Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rq_lock

Proto:static inline void rq_lock(struct rq *rq, struct rq_flags *rf)__acquires(rq->lock)

Type:void

Parameter:

TypeParameterName
struct rq *rq
struct rq_flags *rf
1215  raw_spin_lock( & runqueue lock: )
1216  rq_pin_lock(rq, rf)
Caller
NameDescribe
ttwu_queue
scheduler_tickThis function gets called by the timer code, with HZ frequency.* We call it with interrupts disabled.
__schedule__schedule() is the main scheduler function.* The main means of driving the scheduler and thus entering this function are:* 1. Explicit blocking: mutex, semaphore, waitqueue, etc.* 2. TIF_NEED_RESCHED flag is checked on interrupt and userspace return
task_fork_fairalled on fork with the child task as argument from the parent's context* - child not yet on the tasklist* - preemption disabled