Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This function is called by the a write lock owner. So the owner value* won't get changed by others.

Proto:static inline void rwsem_disable_reader_optspin(struct rw_semaphore *sem, bool disable)

Type:void

Parameter:

TypeParameterName
struct rw_semaphore *sem
booldisable
1129  If Value for the false possibility is greater at compile time(disable) Then
1130  atomic_long_or(RWSEM_RD_NONSPINNABLE, & Write owner or one of the read owners as well flags regarding* the current state of the rwsem. Can be used as a speculative* check to see if the write owner is running on the cpu.)
Caller
NameDescribe
rwsem_down_write_slowpathWait until we successfully acquire the write lock