函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\asm-generic\atomic-instrumented.h Create Date:2022-07-27 06:38:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:atomic_sub

函数原型:static inline void atomic_sub(int i, atomic_t *v)

返回类型:void

参数:

类型参数名称
inti
atomic_t *v
150  kasan_check_write(v, 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.
调用者
名称描述
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
page_ref_sub
queued_read_trylockqueued_read_trylock - try to acquire read lock of a queue rwlock*@lock : Pointer to queue rwlock structure* Return: 1 if lock acquired, 0 if failed