Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:atomic64_dec_if_positive

Proto:s64 atomic64_dec_if_positive(atomic64_t *v)

Type:s64

Parameter:

TypeParameterName
atomic64_t *v
148  lock = lock_addr(v)
151  raw_spin_lock_irqsave(lock, flags)
152  val = counter - 1
153  If val >= 0 Then counter = val
155  raw_spin_unlock_irqrestore(lock, flags)
156  Return val
Caller
NameDescribe
test_atomic64