函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\dec_and_lock.c Create Date:2022-07-27 07:12:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_atomic_dec_and_lock_irqsave

函数原型:int _atomic_dec_and_lock_irqsave(atomic_t *atomic, spinlock_t *lock, unsigned long *flags)

返回类型:int

参数:

类型参数名称
atomic_t *atomic
spinlock_t *lock
unsigned long *flags
41  如果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.则返回:0
45  spin_lock_irqsave(lock, * flags)
46  如果atomic_dec_and_test(atomic)则返回:1
48  spin_unlock_irqrestore(lock, * flags)
49  返回:0