Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__down_read_trylock

Proto:static inline int __down_read_trylock(struct rw_semaphore *sem)

Type:int

Parameter:

TypeParameterName
struct rw_semaphore *sem
1372  tmp = RWSEM_UNLOCKED_VALUE
1373  Do
1377  Return 1
1379  When Not (tmp & RWSEM_READ_FAILED_MASK) cycle
1380  Return 0
Caller
NameDescribe
down_read_trylockrylock for reading -- returns 1 if successful, 0 if contention