Function report |
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 activity | Download SCCT | Chinese |
Name:__down_read_trylock
Proto:static inline int __down_read_trylock(struct rw_semaphore *sem)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct rw_semaphore * | sem |
1372 | tmp = RWSEM_UNLOCKED_VALUE |
1373 | Do |
1374 | If atomic_long_try_cmpxchg_acquire( & count, & tmp, tmp + RWSEM_READER_BIAS) Then |
1376 | rwsem_set_reader_owned(sem) |
1377 | Return 1 |
1379 | When Not (tmp & RWSEM_READ_FAILED_MASK) cycle |
1380 | Return 0 |
Name | Describe |
---|---|
down_read_trylock | rylock for reading -- returns 1 if successful, 0 if contention |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |