Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\rwsem.c Create Date:2022-07-28 09:48:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lock after reading

Proto:inline void __up_read(struct rw_semaphore *sem)

Type:void

Parameter:

TypeParameterName
struct rw_semaphore *sem
1436  rwsem_clear_reader_owned(sem)
1437  tmp = atomic_long_add_return_release( - RWSEM_READER_BIAS, & count)
1439  If Value for the false possibility is greater at compile time((tmp & (RWSEM_LOCK_MASK | RWSEM_FLAG_WAITERS)) == RWSEM_FLAG_WAITERS) Then
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
Caller
NameDescribe
up_readlease a read lock
up_read_non_owner
__percpu_down_read