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_cmpxchg

Proto:static inline int atomic_cmpxchg(atomic_t *v, int old, int new)

Type:int

Parameter:

TypeParameterName
atomic_t *v
intold
intnew
653  kasan_check_write(v, size of v )
654  Return arch_atomic_cmpxchg(v, old, new)
Caller
NameDescribe
__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