ReactOS 0.4.16-dev-297-gc569aee
|
#include <linux/types.h>
Go to the source code of this file.
Classes | |
struct | atomic_t |
Macros | |
#define | ATOMIC_INIT(i) (i) |
#define | atomic_read(v) ((v)->counter) |
#define | atomic_set(v, i) InterlockedExchange((PLONG)(&(v)->counter), (LONG)(i)) |
Functions | |
static void | atomic_add (int volatile i, atomic_t volatile *v) |
static void | atomic_sub (int volatile i, atomic_t volatile *v) |
static int | atomic_sub_and_test (int volatile i, atomic_t volatile *v) |
static void | atomic_inc (atomic_t volatile *v) |
static void | atomic_dec (atomic_t volatile *v) |
static int | atomic_dec_and_test (atomic_t volatile *v) |
static int | atomic_inc_and_test (atomic_t volatile *v) |
static int | atomic_add_negative (int volatile i, atomic_t volatile *v) |
atomic_add - add integer to atomic variable @i: integer value to add @v: pointer of type atomic_t
Atomically adds @i to @v. Note that the guaranteed useful range of an atomic_t is only 24 bits.
Definition at line 43 of file atomic.h.
Referenced by __xmlGlobalInitMutexLock().
atomic_dec - decrement atomic variable @v: pointer of type atomic_t
Atomically decrements @v by 1. Note that the guaranteed useful range of an atomic_t is only 24 bits.
Definition at line 107 of file atomic.h.
Referenced by free_buffer_head(), journal_free_journal_head(), and kmem_cache_free().
atomic_dec_and_test - decrement and test @v: pointer of type atomic_t
Atomically decrements @v by 1 and returns true if the result is 0, or false for all other cases. Note that the guaranteed useful range of an atomic_t is only 24 bits.
Definition at line 121 of file atomic.h.
Referenced by __brelse(), iput(), kfree_skb(), kfree_skb_fast(), and tcp_tw_put().
atomic_inc - increment atomic variable @v: pointer of type atomic_t
Atomically increments @v by 1. Note that the guaranteed useful range of an atomic_t is only 24 bits.
Definition at line 95 of file atomic.h.
Referenced by ext4_get_group_desc(), get_bh(), iget(), journal_alloc_journal_head(), kmem_cache_alloc(), new_buffer_head(), and skb_get().
atomic_sub_and_test - subtract value from variable and test result @i: integer value to subtract @v: pointer of type atomic_t
Atomically subtracts @i from @v and returns true if the result is zero, or false for all other cases. Note that the guaranteed useful range of an atomic_t is only 24 bits.