函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\rwsem.c Create Date:2022-07-27 10:48:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:downgrade a write lock into a read lock* - caller incremented waiting part of count and discovered it still negative* - just wake up any readers at the front of the queue

函数原型:static struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem)

返回类型:struct rw_semaphore

参数:

类型参数名称
struct rw_semaphore *sem
1327  raw_spin_lock_irqsave( & wait_lock, flags)
1329  如果非链表为空handle the lock release when processes blocked on it that can now run* - if we come here from up_xxxx(), then the RWSEM_FLAG_WAITERS bit must* have been set
1332  raw_spin_unlock_irqrestore( & wait_lock, flags)
1333  wake_up_q( & wake_q)
1335  返回:sem
调用者
名称描述
__downgrade_writedowngrade write lock to read lock