函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lock after reading

函数原型:inline void __up_read(struct rw_semaphore *sem)

返回类型:void

参数:

类型参数名称
struct rw_semaphore *sem
1436  rwsem_clear_reader_owned(sem)
1437  tmp等于atomic_long_add_return_release( - RWSEM_READER_BIAS, & count)
1439  如果此条件成立可能性小(为编译器优化)((tmp & (RWSEM_LOCK_MASK | RWSEM_FLAG_WAITERS)) == RWSEM_FLAG_WAITERS)则
1441  clear_wr_nonspinnable(sem)
1442  handle waking up a waiter on the semaphore* - up_read/up_write has decremented the active part of count if we come here
调用者
名称描述
up_readlease a read lock
up_read_non_owner
__percpu_down_read