Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rylock for writing -- returns 1 if successful, 0 if contention

Proto:int down_write_trylock(struct rw_semaphore *sem)

Type:int

Parameter:

TypeParameterName
struct rw_semaphore *sem
1562  ret = __down_write_trylock(sem)
1564  If ret == 1 Then rwsem_acquire( & dep_map, 0, 1, _RET_IP_)
1567  Return ret