Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\asm-generic\atomic-long.h Create Date:2022-07-28 05:34:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:atomic_long_try_cmpxchg_acquire

Proto:static inline bool atomic_long_try_cmpxchg_acquire(atomic_long_t *v, long *old, long new)

Type:bool

Parameter:

TypeParameterName
atomic_long_t *v
long *old
longnew
936  Return atomic_try_cmpxchg_acquire(v, (int * )old, new)
Caller
NameDescribe
rwsem_try_write_lockThis function must be called with the sem->wait_lock held to prevent* race conditions between checking the rwsem wait list and setting the* If wstate is WRITER_HANDOFF, it will make sure that either the handoff
__down_read_trylock
__down_writelock for writing
__down_write_killable
__down_write_trylock