Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_atomic_dec_and_lock_irqsave

Proto:int _atomic_dec_and_lock_irqsave(atomic_t *atomic, spinlock_t *lock, unsigned long *flags)

Type:int

Parameter:

TypeParameterName
atomic_t *atomic
spinlock_t *lock
unsigned long *flags
41  If atomic_add_unless - add unless the number is already a given value*@v: pointer of type atomic_t*@a: the amount to add to v...*@u: ...unless v is equal to u.* Atomically adds @a to @v, if @v was not already @u.* Returns true if the addition was done. Then Return 0
45  spin_lock_irqsave(lock, * flags)
46  If atomic_dec_and_test(atomic) Then Return 1
48  spin_unlock_irqrestore(lock, * flags)
49  Return 0