函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:37:30
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__cond_resched_lock() - if a reschedule is pending, drop the given lock,* call schedule, and on return reacquire the lock

函数原型:int __cond_resched_lock(spinlock_t *lock)

返回类型:int

参数:

类型参数名称
spinlock_t *lock
5646  resched等于Returns true when we need to resched and can (barring IRQ state).
5647  ret等于0
5649  lockdep_assert_held(lock)
5651  如果Does a critical section need to be broken due to another* task waiting?: (technically does not depend on CONFIG_PREEMPTION,* but a general need for low latency)resched
5652  自旋锁解锁
5653  如果reschedpreempt_schedule_common()
5655  否则cpu_relax()
5657  ret等于1
5658  加自旋锁
5660  返回:ret