Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:atomic_inc_below

Proto:static inline bool atomic_inc_below(atomic_t *v, int u)

Type:bool

Parameter:

TypeParameterName
atomic_t *v
intu
178  c = atomic_read(v)
179  cycle
180  If Value for the false possibility is greater at compile time(c >= u) Then Return false
182  old = atomic_cmpxchg(v, c, c + 1)
183  If Value is more likely to compile time(old == c) Then Return true
185  c = old
Caller
NameDescribe
inc_ucount