id
stringlengths
4
63
text
stringlengths
153
8.81M
atomic64_try_cmpxchg_acquire(9)
NAME atomic64_try_cmpxchg_acquire - atomic compare and exchange with acquire ordering SYNOPSIS bool atomic64_try_cmpxchg_acquire (atomic64_t *v , s64 *old , s64 new ); ARGUMENTS v pointer to atomic64_t old pointer to s64 value to compare with new s64 value to assign DESCRIPT...
atomic64_try_cmpxchg_relaxed(9)
NAME atomic64_try_cmpxchg_relaxed - atomic compare and exchange with relaxed ordering SYNOPSIS bool atomic64_try_cmpxchg_relaxed (atomic64_t *v , s64 *old , s64 new ); ARGUMENTS v pointer to atomic64_t old pointer to s64 value to compare with new s64 value to assign DESCRIPT...
atomic64_try_cmpxchg_release(9)
NAME atomic64_try_cmpxchg_release - atomic compare and exchange with release ordering SYNOPSIS bool atomic64_try_cmpxchg_release (atomic64_t *v , s64 *old , s64 new ); ARGUMENTS v pointer to atomic64_t old pointer to s64 value to compare with new s64 value to assign DESCRIPT...
atomic64_xchg(9)
NAME atomic64_xchg - atomic exchange with full ordering SYNOPSIS s64 atomic64_xchg (atomic64_t *v , s64 new ); ARGUMENTS v pointer to atomic64_t new s64 value to assign DESCRIPTION Atomically updates v to new with full ordering. Unsafe to use in noinstr code; use raw_atomic64_xchg there. ...
atomic64_xchg_acquire(9)
NAME atomic64_xchg_acquire - atomic exchange with acquire ordering SYNOPSIS s64 atomic64_xchg_acquire (atomic64_t *v , s64 new ); ARGUMENTS v pointer to atomic64_t new s64 value to assign DESCRIPTION Atomically updates v to new with acquire ordering. Unsafe to use in noinstr code; use raw_...
atomic64_xchg_relaxed(9)
NAME atomic64_xchg_relaxed - atomic exchange with relaxed ordering SYNOPSIS s64 atomic64_xchg_relaxed (atomic64_t *v , s64 new ); ARGUMENTS v pointer to atomic64_t new s64 value to assign DESCRIPTION Atomically updates v to new with relaxed ordering. Unsafe to use in noinstr code; use raw_...
atomic64_xchg_release(9)
NAME atomic64_xchg_release - atomic exchange with release ordering SYNOPSIS s64 atomic64_xchg_release (atomic64_t *v , s64 new ); ARGUMENTS v pointer to atomic64_t new s64 value to assign DESCRIPTION Atomically updates v to new with release ordering. Unsafe to use in noinstr code; use raw_...
atomic64_xor(9)
NAME atomic64_xor - atomic bitwise XOR with relaxed ordering SYNOPSIS void atomic64_xor (s64 i , atomic64_t *v ); ARGUMENTS i s64 value v pointer to atomic64_t DESCRIPTION Atomically updates v to (v ^ i) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic64_xor there. R...
atomic_add(9)
NAME atomic_add - atomic add with relaxed ordering SYNOPSIS void atomic_add (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic_add there. RETURN Nothi...
atomic_add_negative(9)
NAME atomic_add_negative - atomic add and test if negative with full ordering SYNOPSIS bool atomic_add_negative (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with full ordering. Unsafe to use in noinstr code; use ra...
atomic_add_negative_acquire(9)
NAME atomic_add_negative_acquire - atomic add and test if negative with acquire ordering SYNOPSIS bool atomic_add_negative_acquire (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with acquire ordering. Unsafe to use i...
atomic_add_negative_relaxed(9)
NAME atomic_add_negative_relaxed - atomic add and test if negative with relaxed ordering SYNOPSIS bool atomic_add_negative_relaxed (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with relaxed ordering. Unsafe to use i...
atomic_add_negative_release(9)
NAME atomic_add_negative_release - atomic add and test if negative with release ordering SYNOPSIS bool atomic_add_negative_release (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with release ordering. Unsafe to use i...
atomic_add_return(9)
NAME atomic_add_return - atomic add with full ordering SYNOPSIS int atomic_add_return (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with full ordering. Unsafe to use in noinstr code; use raw_atomic_add_return there....
atomic_add_return_acquire(9)
NAME atomic_add_return_acquire - atomic add with acquire ordering SYNOPSIS int atomic_add_return_acquire (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with acquire ordering. Unsafe to use in noinstr code; use raw_at...
atomic_add_return_relaxed(9)
NAME atomic_add_return_relaxed - atomic add with relaxed ordering SYNOPSIS int atomic_add_return_relaxed (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with relaxed ordering. Unsafe to use in noinstr code; use raw_at...
atomic_add_return_release(9)
NAME atomic_add_return_release - atomic add with release ordering SYNOPSIS int atomic_add_return_release (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with release ordering. Unsafe to use in noinstr code; use raw_at...
atomic_add_unless(9)
NAME atomic_add_unless - atomic add unless value with full ordering SYNOPSIS bool atomic_add_unless (atomic_t *v , int a , int u ); ARGUMENTS v pointer to atomic_t a int value to add u int value to compare with DESCRIPTION If (v != u), atomically updates v to (v + a) wit...
atomic_and(9)
NAME atomic_and - atomic bitwise AND with relaxed ordering SYNOPSIS void atomic_and (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v & i) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic_and there. RETURN Noth...
atomic_andnot(9)
NAME atomic_andnot - atomic bitwise AND NOT with relaxed ordering SYNOPSIS void atomic_andnot (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v & ~i) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic_andnot there...
atomic_cmpxchg(9)
NAME atomic_cmpxchg - Atomic compare and exchange SYNOPSIS int atomic_cmpxchg (atomic_t *addr , int oldval , int newval ); ARGUMENTS addr -- undescribed -- oldval The expected value of the futex newval The new value to try and assign the futex DESCRIPTION Return the old value of addr...
atomic_cmpxchg_acquire(9)
NAME atomic_cmpxchg_acquire - atomic compare and exchange with acquire ordering SYNOPSIS int atomic_cmpxchg_acquire (atomic_t *v , int old , int new ); ARGUMENTS v pointer to atomic_t old int value to compare with new int value to assign DESCRIPTION If (v == old), atomically...
atomic_cmpxchg_relaxed(9)
NAME atomic_cmpxchg_relaxed - atomic compare and exchange with relaxed ordering SYNOPSIS int atomic_cmpxchg_relaxed (atomic_t *v , int old , int new ); ARGUMENTS v pointer to atomic_t old int value to compare with new int value to assign DESCRIPTION If (v == old), atomically...
atomic_cmpxchg_release(9)
NAME atomic_cmpxchg_release - atomic compare and exchange with release ordering SYNOPSIS int atomic_cmpxchg_release (atomic_t *v , int old , int new ); ARGUMENTS v pointer to atomic_t old int value to compare with new int value to assign DESCRIPTION If (v == old), atomically...
atomic_dec(9)
NAME atomic_dec - Atomic decrement SYNOPSIS int atomic_dec (atomic_t *addr ); ARGUMENTS addr Address of the variable to decrement DESCRIPTION Return the new value of addr-val. SEE ALSO Kernel file ./tools/testing/selftests/futex/include/atomic.h atomic_cmpxchg(9), atomic_inc(9), atomic_set(9) April 2026 ...
atomic_dec_and_lock(9)
NAME atomic_dec_and_lock - lock on reaching reference count zero SYNOPSIS int atomic_dec_and_lock (atomic_t *atomic , spinlock_t *lock ); ARGUMENTS atomic the atomic counter lock the spinlock in question DESCRIPTION Decrements atomic by 1. If the result is 0, returns true and locks lock. Return...
atomic_dec_and_mutex_lock(9)
NAME atomic_dec_and_mutex_lock - return holding mutex if we dec to 0 SYNOPSIS int atomic_dec_and_mutex_lock (atomic_t *cnt , struct mutex *lock ); ARGUMENTS cnt the atomic which we are to dec lock the mutex to return holding if we dec to 0 DESCRIPTION return true and hold lock if we dec to 0, ...
atomic_dec_and_test(9)
NAME atomic_dec_and_test - decrement and test SYNOPSIS int atomic_dec_and_test (atomic_t *v ); ARGUMENTS v pointer of type atomic_t DESCRIPTION Atomically decrements v by 1 and returns true if the result is 0, or false for all other cases. SEE ALSO Kernel file ./tools/include/asm-generic/atomic-gcc.h atom...
atomic_dec_and_wake_up(9)
NAME atomic_dec_and_wake_up - decrement an atomic_t and if zero, wake up waiters SYNOPSIS bool atomic_dec_and_wake_up (atomic_t *var ); ARGUMENTS var the variable to dec and test DESCRIPTION Decrements the atomic variable and if it reaches zero, send a wake_up to any processes waiting on the variable. This ...
atomic_dec_if_positive(9)
NAME atomic_dec_if_positive - atomic decrement if positive with full ordering SYNOPSIS int atomic_dec_if_positive (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION If (v > 0), atomically updates v to (v - 1) with full ordering. Otherwise, v is not modified and relaxed ordering is provided. Unsa...
atomic_dec_return(9)
NAME atomic_dec_return - atomic decrement with full ordering SYNOPSIS int atomic_dec_return (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v - 1) with full ordering. Unsafe to use in noinstr code; use raw_atomic_dec_return there. RETURN The updated value of v. SEE A...
atomic_dec_return_acquire(9)
NAME atomic_dec_return_acquire - atomic decrement with acquire ordering SYNOPSIS int atomic_dec_return_acquire (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v - 1) with acquire ordering. Unsafe to use in noinstr code; use raw_atomic_dec_return_acquire there. RETURN ...
atomic_dec_return_relaxed(9)
NAME atomic_dec_return_relaxed - atomic decrement with relaxed ordering SYNOPSIS int atomic_dec_return_relaxed (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v - 1) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic_dec_return_relaxed there. RETURN ...
atomic_dec_return_release(9)
NAME atomic_dec_return_release - atomic decrement with release ordering SYNOPSIS int atomic_dec_return_release (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v - 1) with release ordering. Unsafe to use in noinstr code; use raw_atomic_dec_return_release there. RETURN ...
atomic_dec_unless_positive(9)
NAME atomic_dec_unless_positive - atomic decrement unless positive with full ordering SYNOPSIS bool atomic_dec_unless_positive (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION If (v <= 0), atomically updates v to (v - 1) with full ordering. Otherwise, v is not modified and relaxed ordering is p...
atomic_fetch_add(9)
NAME atomic_fetch_add - atomic add with full ordering SYNOPSIS int atomic_fetch_add (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with full ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_add there. R...
atomic_fetch_add_acquire(9)
NAME atomic_fetch_add_acquire - atomic add with acquire ordering SYNOPSIS int atomic_fetch_add_acquire (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with acquire ordering. Unsafe to use in noinstr code; use raw_atom...
atomic_fetch_add_relaxed(9)
NAME atomic_fetch_add_relaxed - atomic add with relaxed ordering SYNOPSIS int atomic_fetch_add_relaxed (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with relaxed ordering. Unsafe to use in noinstr code; use raw_atom...
atomic_fetch_add_release(9)
NAME atomic_fetch_add_release - atomic add with release ordering SYNOPSIS int atomic_fetch_add_release (int i , atomic_t *v ); ARGUMENTS i int value to add v pointer to atomic_t DESCRIPTION Atomically updates v to (v + i) with release ordering. Unsafe to use in noinstr code; use raw_atom...
atomic_fetch_add_unless(9)
NAME atomic_fetch_add_unless - atomic add unless value with full ordering SYNOPSIS int atomic_fetch_add_unless (atomic_t *v , int a , int u ); ARGUMENTS v pointer to atomic_t a int value to add u int value to compare with DESCRIPTION If (v != u), atomically updates v to ...
atomic_fetch_and(9)
NAME atomic_fetch_and - atomic bitwise AND with full ordering SYNOPSIS int atomic_fetch_and (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v & i) with full ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_and there. ...
atomic_fetch_and_acquire(9)
NAME atomic_fetch_and_acquire - atomic bitwise AND with acquire ordering SYNOPSIS int atomic_fetch_and_acquire (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v & i) with acquire ordering. Unsafe to use in noinstr code; use raw_ato...
atomic_fetch_and_relaxed(9)
NAME atomic_fetch_and_relaxed - atomic bitwise AND with relaxed ordering SYNOPSIS int atomic_fetch_and_relaxed (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v & i) with relaxed ordering. Unsafe to use in noinstr code; use raw_ato...
atomic_fetch_and_release(9)
NAME atomic_fetch_and_release - atomic bitwise AND with release ordering SYNOPSIS int atomic_fetch_and_release (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v & i) with release ordering. Unsafe to use in noinstr code; use raw_ato...
atomic_fetch_andnot(9)
NAME atomic_fetch_andnot - atomic bitwise AND NOT with full ordering SYNOPSIS int atomic_fetch_andnot (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v & ~i) with full ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_a...
atomic_fetch_andnot_acquire(9)
NAME atomic_fetch_andnot_acquire - atomic bitwise AND NOT with acquire ordering SYNOPSIS int atomic_fetch_andnot_acquire (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v & ~i) with acquire ordering. Unsafe to use in noinstr code; ...
atomic_fetch_andnot_relaxed(9)
NAME atomic_fetch_andnot_relaxed - atomic bitwise AND NOT with relaxed ordering SYNOPSIS int atomic_fetch_andnot_relaxed (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v & ~i) with relaxed ordering. Unsafe to use in noinstr code; ...
atomic_fetch_andnot_release(9)
NAME atomic_fetch_andnot_release - atomic bitwise AND NOT with release ordering SYNOPSIS int atomic_fetch_andnot_release (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v & ~i) with release ordering. Unsafe to use in noinstr code; ...
atomic_fetch_dec(9)
NAME atomic_fetch_dec - atomic decrement with full ordering SYNOPSIS int atomic_fetch_dec (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v - 1) with full ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_dec there. RETURN The original value of v. SEE ALS...
atomic_fetch_dec_acquire(9)
NAME atomic_fetch_dec_acquire - atomic decrement with acquire ordering SYNOPSIS int atomic_fetch_dec_acquire (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v - 1) with acquire ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_dec_acquire there. RETURN The...
atomic_fetch_dec_relaxed(9)
NAME atomic_fetch_dec_relaxed - atomic decrement with relaxed ordering SYNOPSIS int atomic_fetch_dec_relaxed (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v - 1) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_dec_relaxed there. RETURN The...
atomic_fetch_dec_release(9)
NAME atomic_fetch_dec_release - atomic decrement with release ordering SYNOPSIS int atomic_fetch_dec_release (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v - 1) with release ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_dec_release there. RETURN The...
atomic_fetch_inc(9)
NAME atomic_fetch_inc - atomic increment with full ordering SYNOPSIS int atomic_fetch_inc (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v + 1) with full ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_inc there. RETURN The original value of v. SEE ALS...
atomic_fetch_inc_acquire(9)
NAME atomic_fetch_inc_acquire - atomic increment with acquire ordering SYNOPSIS int atomic_fetch_inc_acquire (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v + 1) with acquire ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_inc_acquire there. RETURN The...
atomic_fetch_inc_relaxed(9)
NAME atomic_fetch_inc_relaxed - atomic increment with relaxed ordering SYNOPSIS int atomic_fetch_inc_relaxed (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v + 1) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_inc_relaxed there. RETURN The...
atomic_fetch_inc_release(9)
NAME atomic_fetch_inc_release - atomic increment with release ordering SYNOPSIS int atomic_fetch_inc_release (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v + 1) with release ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_inc_release there. RETURN The...
atomic_fetch_or(9)
NAME atomic_fetch_or - atomic bitwise OR with full ordering SYNOPSIS int atomic_fetch_or (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v | i) with full ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_or there. RETU...
atomic_fetch_or_acquire(9)
NAME atomic_fetch_or_acquire - atomic bitwise OR with acquire ordering SYNOPSIS int atomic_fetch_or_acquire (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v | i) with acquire ordering. Unsafe to use in noinstr code; use raw_atomic...
atomic_fetch_or_relaxed(9)
NAME atomic_fetch_or_relaxed - atomic bitwise OR with relaxed ordering SYNOPSIS int atomic_fetch_or_relaxed (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v | i) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic...
atomic_fetch_or_release(9)
NAME atomic_fetch_or_release - atomic bitwise OR with release ordering SYNOPSIS int atomic_fetch_or_release (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v | i) with release ordering. Unsafe to use in noinstr code; use raw_atomic...
atomic_fetch_sub(9)
NAME atomic_fetch_sub - atomic subtract with full ordering SYNOPSIS int atomic_fetch_sub (int i , atomic_t *v ); ARGUMENTS i int value to subtract v pointer to atomic_t DESCRIPTION Atomically updates v to (v - i) with full ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_sub...
atomic_fetch_sub_acquire(9)
NAME atomic_fetch_sub_acquire - atomic subtract with acquire ordering SYNOPSIS int atomic_fetch_sub_acquire (int i , atomic_t *v ); ARGUMENTS i int value to subtract v pointer to atomic_t DESCRIPTION Atomically updates v to (v - i) with acquire ordering. Unsafe to use in noinstr code; us...
atomic_fetch_sub_relaxed(9)
NAME atomic_fetch_sub_relaxed - atomic subtract with relaxed ordering SYNOPSIS int atomic_fetch_sub_relaxed (int i , atomic_t *v ); ARGUMENTS i int value to subtract v pointer to atomic_t DESCRIPTION Atomically updates v to (v - i) with relaxed ordering. Unsafe to use in noinstr code; us...
atomic_fetch_sub_release(9)
NAME atomic_fetch_sub_release - atomic subtract with release ordering SYNOPSIS int atomic_fetch_sub_release (int i , atomic_t *v ); ARGUMENTS i int value to subtract v pointer to atomic_t DESCRIPTION Atomically updates v to (v - i) with release ordering. Unsafe to use in noinstr code; us...
atomic_fetch_xor(9)
NAME atomic_fetch_xor - atomic bitwise XOR with full ordering SYNOPSIS int atomic_fetch_xor (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v ^ i) with full ordering. Unsafe to use in noinstr code; use raw_atomic_fetch_xor there. ...
atomic_fetch_xor_acquire(9)
NAME atomic_fetch_xor_acquire - atomic bitwise XOR with acquire ordering SYNOPSIS int atomic_fetch_xor_acquire (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v ^ i) with acquire ordering. Unsafe to use in noinstr code; use raw_ato...
atomic_fetch_xor_relaxed(9)
NAME atomic_fetch_xor_relaxed - atomic bitwise XOR with relaxed ordering SYNOPSIS int atomic_fetch_xor_relaxed (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v ^ i) with relaxed ordering. Unsafe to use in noinstr code; use raw_ato...
atomic_fetch_xor_release(9)
NAME atomic_fetch_xor_release - atomic bitwise XOR with release ordering SYNOPSIS int atomic_fetch_xor_release (int i , atomic_t *v ); ARGUMENTS i int value v pointer to atomic_t DESCRIPTION Atomically updates v to (v ^ i) with release ordering. Unsafe to use in noinstr code; use raw_ato...
atomic_inc(9)
NAME atomic_inc - Atomic incrememnt SYNOPSIS int atomic_inc (atomic_t *addr ); ARGUMENTS addr Address of the variable to increment DESCRIPTION Return the new value of addr->val. SEE ALSO Kernel file ./tools/testing/selftests/futex/include/atomic.h atomic_cmpxchg(9), atomic_dec(9), atomic_set(9) April 2026 ...
atomic_inc_and_test(9)
NAME atomic_inc_and_test - atomic increment and test if zero with full ordering SYNOPSIS bool atomic_inc_and_test (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v + 1) with full ordering. Unsafe to use in noinstr code; use raw_atomic_inc_and_test there. RETURN true i...
atomic_inc_not_zero(9)
NAME atomic_inc_not_zero - atomic increment unless zero with full ordering SYNOPSIS bool atomic_inc_not_zero (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION If (v != 0), atomically updates v to (v + 1) with full ordering. Otherwise, v is not modified and relaxed ordering is provided. Unsafe t...
atomic_inc_return(9)
NAME atomic_inc_return - atomic increment with full ordering SYNOPSIS int atomic_inc_return (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v + 1) with full ordering. Unsafe to use in noinstr code; use raw_atomic_inc_return there. RETURN The updated value of v. SEE A...
atomic_inc_return_acquire(9)
NAME atomic_inc_return_acquire - atomic increment with acquire ordering SYNOPSIS int atomic_inc_return_acquire (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v + 1) with acquire ordering. Unsafe to use in noinstr code; use raw_atomic_inc_return_acquire there. RETURN ...
atomic_inc_return_relaxed(9)
NAME atomic_inc_return_relaxed - atomic increment with relaxed ordering SYNOPSIS int atomic_inc_return_relaxed (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v + 1) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic_inc_return_relaxed there. RETURN ...
atomic_inc_return_release(9)
NAME atomic_inc_return_release - atomic increment with release ordering SYNOPSIS int atomic_inc_return_release (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION Atomically updates v to (v + 1) with release ordering. Unsafe to use in noinstr code; use raw_atomic_inc_return_release there. RETURN ...
atomic_inc_unless_negative(9)
NAME atomic_inc_unless_negative - atomic increment unless negative with full ordering SYNOPSIS bool atomic_inc_unless_negative (atomic_t *v ); ARGUMENTS v pointer to atomic_t DESCRIPTION If (v >= 0), atomically updates v to (v + 1) with full ordering. Otherwise, v is not modified and relaxed ordering is p...
atomic_long_add(9)
NAME atomic_long_add - atomic add with relaxed ordering SYNOPSIS void atomic_long_add (long i , atomic_long_t *v ); ARGUMENTS i long value to add v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v + i) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic_lo...
atomic_long_add_negative(9)
NAME atomic_long_add_negative - atomic add and test if negative with full ordering SYNOPSIS bool atomic_long_add_negative (long i , atomic_long_t *v ); ARGUMENTS i long value to add v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v + i) with full ordering. Unsafe to use i...
atomic_long_add_negative_acquire(9)
NAME atomic_long_add_negative_acquire - atomic add and test if negative with acquire ordering SYNOPSIS bool atomic_long_add_negative_acquire (long i , atomic_long_t *v ); ARGUMENTS i long value to add v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v + i) with acquire orde...
atomic_long_add_negative_relaxed(9)
NAME atomic_long_add_negative_relaxed - atomic add and test if negative with relaxed ordering SYNOPSIS bool atomic_long_add_negative_relaxed (long i , atomic_long_t *v ); ARGUMENTS i long value to add v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v + i) with relaxed orde...
atomic_long_add_negative_release(9)
NAME atomic_long_add_negative_release - atomic add and test if negative with release ordering SYNOPSIS bool atomic_long_add_negative_release (long i , atomic_long_t *v ); ARGUMENTS i long value to add v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v + i) with release orde...
atomic_long_add_return(9)
NAME atomic_long_add_return - atomic add with full ordering SYNOPSIS long atomic_long_add_return (long i , atomic_long_t *v ); ARGUMENTS i long value to add v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v + i) with full ordering. Unsafe to use in noinstr code; use raw_a...
atomic_long_add_return_acquire(9)
NAME atomic_long_add_return_acquire - atomic add with acquire ordering SYNOPSIS long atomic_long_add_return_acquire (long i , atomic_long_t *v ); ARGUMENTS i long value to add v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v + i) with acquire ordering. Unsafe to use in n...
atomic_long_add_return_relaxed(9)
NAME atomic_long_add_return_relaxed - atomic add with relaxed ordering SYNOPSIS long atomic_long_add_return_relaxed (long i , atomic_long_t *v ); ARGUMENTS i long value to add v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v + i) with relaxed ordering. Unsafe to use in n...
atomic_long_add_return_release(9)
NAME atomic_long_add_return_release - atomic add with release ordering SYNOPSIS long atomic_long_add_return_release (long i , atomic_long_t *v ); ARGUMENTS i long value to add v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v + i) with release ordering. Unsafe to use in n...
atomic_long_add_unless(9)
NAME atomic_long_add_unless - atomic add unless value with full ordering SYNOPSIS bool atomic_long_add_unless (atomic_long_t *v , long a , long u ); ARGUMENTS v pointer to atomic_long_t a long value to add u long value to compare with DESCRIPTION If (v != u), atomically ...
atomic_long_and(9)
NAME atomic_long_and - atomic bitwise AND with relaxed ordering SYNOPSIS void atomic_long_and (long i , atomic_long_t *v ); ARGUMENTS i long value v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v & i) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic_l...
atomic_long_andnot(9)
NAME atomic_long_andnot - atomic bitwise AND NOT with relaxed ordering SYNOPSIS void atomic_long_andnot (long i , atomic_long_t *v ); ARGUMENTS i long value v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v & ~i) with relaxed ordering. Unsafe to use in noinstr code; use r...
atomic_long_cmpxchg(9)
NAME atomic_long_cmpxchg - atomic compare and exchange with full ordering SYNOPSIS long atomic_long_cmpxchg (atomic_long_t *v , long old , long new ); ARGUMENTS v pointer to atomic_long_t old long value to compare with new long value to assign DESCRIPTION If (v == old), atom...
atomic_long_cmpxchg_acquire(9)
NAME atomic_long_cmpxchg_acquire - atomic compare and exchange with acquire ordering SYNOPSIS long atomic_long_cmpxchg_acquire (atomic_long_t *v , long old , long new ); ARGUMENTS v pointer to atomic_long_t old long value to compare with new long value to assign DESCRIPTION ...
atomic_long_cmpxchg_relaxed(9)
NAME atomic_long_cmpxchg_relaxed - atomic compare and exchange with relaxed ordering SYNOPSIS long atomic_long_cmpxchg_relaxed (atomic_long_t *v , long old , long new ); ARGUMENTS v pointer to atomic_long_t old long value to compare with new long value to assign DESCRIPTION ...
atomic_long_cmpxchg_release(9)
NAME atomic_long_cmpxchg_release - atomic compare and exchange with release ordering SYNOPSIS long atomic_long_cmpxchg_release (atomic_long_t *v , long old , long new ); ARGUMENTS v pointer to atomic_long_t old long value to compare with new long value to assign DESCRIPTION ...
atomic_long_dec(9)
NAME atomic_long_dec - atomic decrement with relaxed ordering SYNOPSIS void atomic_long_dec (atomic_long_t *v ); ARGUMENTS v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v - 1) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic_long_dec there. RETURN Nothing. SEE ALSO ...
atomic_long_dec_and_test(9)
NAME atomic_long_dec_and_test - atomic decrement and test if zero with full ordering SYNOPSIS bool atomic_long_dec_and_test (atomic_long_t *v ); ARGUMENTS v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v - 1) with full ordering. Unsafe to use in noinstr code; use raw_atomic_long_dec_and_t...
atomic_long_dec_if_positive(9)
NAME atomic_long_dec_if_positive - atomic decrement if positive with full ordering SYNOPSIS long atomic_long_dec_if_positive (atomic_long_t *v ); ARGUMENTS v pointer to atomic_long_t DESCRIPTION If (v > 0), atomically updates v to (v - 1) with full ordering. Otherwise, v is not modified and relaxed orderi...
atomic_long_dec_return(9)
NAME atomic_long_dec_return - atomic decrement with full ordering SYNOPSIS long atomic_long_dec_return (atomic_long_t *v ); ARGUMENTS v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v - 1) with full ordering. Unsafe to use in noinstr code; use raw_atomic_long_dec_return there. RETURN The ...
atomic_long_dec_return_acquire(9)
NAME atomic_long_dec_return_acquire - atomic decrement with acquire ordering SYNOPSIS long atomic_long_dec_return_acquire (atomic_long_t *v ); ARGUMENTS v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v - 1) with acquire ordering. Unsafe to use in noinstr code; use raw_atomic_long_dec_retu...
atomic_long_dec_return_relaxed(9)
NAME atomic_long_dec_return_relaxed - atomic decrement with relaxed ordering SYNOPSIS long atomic_long_dec_return_relaxed (atomic_long_t *v ); ARGUMENTS v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v - 1) with relaxed ordering. Unsafe to use in noinstr code; use raw_atomic_long_dec_retu...
atomic_long_dec_return_release(9)
NAME atomic_long_dec_return_release - atomic decrement with release ordering SYNOPSIS long atomic_long_dec_return_release (atomic_long_t *v ); ARGUMENTS v pointer to atomic_long_t DESCRIPTION Atomically updates v to (v - 1) with release ordering. Unsafe to use in noinstr code; use raw_atomic_long_dec_retu...
atomic_long_dec_unless_positive(9)
NAME atomic_long_dec_unless_positive - atomic decrement unless positive with full ordering SYNOPSIS bool atomic_long_dec_unless_positive (atomic_long_t *v ); ARGUMENTS v pointer to atomic_long_t DESCRIPTION If (v <= 0), atomically updates v to (v - 1) with full ordering. Otherwise, v is not modified and r...