Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\atomic64.c Create Date:2022-07-28 07:17:35
Last Modify:2022-05-18 13:46:02 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:atomic64_fetch_add_unless

Proto:s64 atomic64_fetch_add_unless(atomic64_t *v, s64 a, s64 u)

Type:s64

Parameter:

TypeParameterName
atomic64_t *v
s64a
s64u
192  lock = lock_addr(v)
195  raw_spin_lock_irqsave(lock, flags)
196  val = counter
197  If val != u Then counter += a
199  raw_spin_unlock_irqrestore(lock, flags)
201  Return val
Caller
NameDescribe
bpf_prog_inc_not_zeroprog_idr_lock should have been held