函数逻辑报告

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_cmpxchg

函数原型:static inline int atomic_cmpxchg(atomic_t *v, int old, int new)

返回类型:int

参数:

类型参数名称
atomic_t *v
intold
intnew
653  kasan_check_write(v, v的长度)
654  返回:arch_atomic_cmpxchg(v, old, new)
调用者
名称描述
__sbq_wake_up
native_stop_other_cpus
reserve_eilvt_offset
nmi_panicA variant of panic() called from NMI context. We return if we've already* panicked on this CPU. If another CPU already panicked, loop in* nmi_panic_self_stop() which can provide architecture dependent code such* as saving register state for crash dump.
panicpanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
atomic_inc_below
psi_schedule_poll_workSchedule polling if it's not already scheduled. It's safe to call even from* hotpath because even though kthread_queue_delayed_work takes worker->lock* spinlock that spinlock is never contended due to poll_scheduled atomic* preventing such competition.
printk_safe_log_storeAdd a message to per-CPU context-dependent buffer
__printk_safe_flushFlush data from the associated per-CPU buffer. The function* can be called either via IRQ work or independently.
rcu_eqs_special_setSet the special (bottom) bit of the specified CPU so that it* will take special action (such as flushing its TLB) on the* next exit from an extended quiescent state. Returns true if* the bit was successfully set, or false if the CPU was not in
crash_kexec
ring_buffer_record_offg_buffer_record_off - stop all writes into the buffer*@buffer: The ring buffer to stop writes to
ring_buffer_record_ong_buffer_record_on - restart writes into the buffer*@buffer: The ring buffer to start writes to
irq_work_run_list
static_key_slow_inc
static_key_disable_cpuslocked
shrink_huge_zero_page_scan
atomic_inc_belowIncrement 'v', if 'v' is below 'below'. Returns true if we succeeded,* false if 'v' + 1 would be bigger than 'below'.
check_scale_changeCheck our parent and see if the scale cookie has changed.
__get_reqs_available
atomic_long_cmpxchg
page_ref_freeze
blkcg_unuse_delay
blkcg_clear_delay
sbq_index_atomic_inc