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

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

Type:bool

Parameter:

TypeParameterName
atomic_long_t *v
long *old
longnew
930  Return atomic_try_cmpxchg(v, (int * )old, new)
Caller
NameDescribe
rwsem_set_nonspinnableSet the RWSEM_NONSPINNABLE bits if the RWSEM_READER_OWNED flag* remains set. Otherwise, the operation will be aborted.