1atomic_bits(3C)          Standard C Library Functions          atomic_bits(3C)
2
3
4

NAME

6       atomic_bits,  atomic_set_long_excl, atomic_clear_long_excl - atomic set
7       and clear bit operations
8

SYNOPSIS

10       #include <atomic.h>
11
12       int atomic_set_long_excl(volatile ulong_t *target, uint_t bit);
13
14
15       int atomic_clear_long_excl(volatile ulong_t *target, uint_t bit);
16
17

DESCRIPTION

19       The atomic_set_long_excl() and atomic_clear_long_excl() functions  per‐
20       form  an  exclusive  atomic  bit  set or clear operation on target. The
21       value of bit specifies the number of the bit to be modified within tar‐
22       get. Bits are numbered from zero to one less than the maximum number of
23       bits in a long. If the value of bit falls outside of  this  range,  the
24       result of the operation is undefined.
25

RETURN VALUES

27       The   atomic_set_long_excl()   and  atomic_clear_long_excl()  functions
28       return 0 if bit was successfully set or cleared. They return -1 if  bit
29       was already set or cleared.
30

ERRORS

32       No errors are defined.
33

ATTRIBUTES

35       See attributes(5) for descriptions of the following attributes:
36
37
38
39
40       ┌─────────────────────────────┬─────────────────────────────┐
41       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
42       ├─────────────────────────────┼─────────────────────────────┤
43       │Interface Stability          │Stable                       │
44       ├─────────────────────────────┼─────────────────────────────┤
45       │MT-Level                     │MT-Safe                      │
46       └─────────────────────────────┴─────────────────────────────┘
47

SEE ALSO

49       atomic_add(3C),    atomic_and(3C),    atomic_cas(3C),   atomic_dec(3C),
50       atomic_inc(3C),   atomic_or(3C),    atomic_swap(3C),    membar_ops(3C),
51       attributes(5), atomic_ops(9F)
52
53
54
55SunOS 5.11                        13 May 2005                  atomic_bits(3C)
Impressum