Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:atomic64_dec_unless_positive

Proto:static inline bool atomic64_dec_unless_positive(atomic64_t *v)

Type:bool

Parameter:

TypeParameterName
atomic64_t *v
2262  c = atomic64_read(v)
2264  Do
2265  If Value for the false possibility is greater at compile time(c > 0) Then Return false
2267  When Not atomic64_try_cmpxchg(v, & c, c - 1) cycle
2269  Return true