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_dec_if_positive

Proto:static inline int atomic_dec_if_positive(atomic_t *v)

Type:int

Parameter:

TypeParameterName
atomic_t *v
1168  c = atomic_read(v)
1170  Do
1171  dec = c - 1
1172  If Value for the false possibility is greater at compile time(dec < 0) Then Break
1174  When Not atomic_try_cmpxchg(v, & c, dec) cycle
1176  Return dec
Caller
NameDescribe
dec_ucount
__request_module__request_module - try to load a kernel module*@wait: wait (or not) for the operation to complete*@fmt: printf style format string for the name of the module*@...: arguments as specified in the format string
atomic_long_dec_if_positive