Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:atomic_sub

Proto:static inline void atomic_sub(int i, atomic_t *v)

Type:void

Parameter:

TypeParameterName
inti
atomic_t *v
150  kasan_check_write(v, size of v )
151  arch_atomic_sub - subtract integer from atomic variable*@i: integer value to subtract*@v: pointer of type atomic_t* Atomically subtracts @i from @v.
Caller
NameDescribe
should_failThis code is stolen from failmalloc-1.0* http://www.nongnu.org/failmalloc/
queued_read_lock_slowpathqueued_read_lock_slowpath - acquire read lock of a queue rwlock*@lock: Pointer to queue rwlock structure
freequeque() wakes up waiters on the sender and receiver waiting queue,* removes the message queue from message queue ID IDR, and cleans up all the* messages associated with this queue.* msg_ids.rwsem (writer) and the spinlock for this message queue are held
do_msgrcv
scale_cookie_changeWe scale the qd down faster than we scale up, so we need to use this helper* to adjust the scale_cookie accordingly so we don't prematurely get* scale_cookie at DEFAULT_SCALE_COOKIE and unthrottle too much
atomic_long_sub