Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\atomic-fallback.h Create Date:2022-07-28 05:34:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

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

Type:bool

Parameter:

TypeParameterName
atomic_t *v
inta
intu
1111  Return atomic_fetch_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, so long as @v was not already @u.* Returns original value of @v != u
Caller
NameDescribe
_atomic_dec_and_lockThis is an implementation of the notion of "decrement a* reference count, and return locked if it decremented to zero"
_atomic_dec_and_lock_irqsave
atomic_dec_and_mutex_lockatomic_dec_and_mutex_lock - return holding mutex if we dec to 0*@cnt: the atomic which we are to dec*@lock: the mutex to return holding if we dec to 0* return true and hold lock if we dec to 0, return false otherwise
hibernatehibernate - Carry out system hibernation, including saving the image.
software_resumesoftware_resume - Resume from a saved hibernation image.* This routine is called as a late initcall, when all devices have been* discovered and initialized already.* The image reading code is called to see if there is a hibernation image
snapshot_open
kdb_param_enable_nmi
unaccount_event
deactivate_superdeactivate_super - drop an active reference to superblock*@s: superblock to deactivate* Variant of deactivate_locked_super(), except that superblock is *not** locked by caller. If we are going to drop the final active reference,
atomic_inc_not_zeroatomic_inc_not_zero - increment unless the number is zero*@v: pointer of type atomic_t* Atomically increments @v by 1, if @v is non-zero.* Returns true if the increment was done.
atomic_long_add_unless