Unix and Linux Discussions Tagged with bit |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
52,527 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,450 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
2,845 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
6,626 |
Solaris |
|
|
|
0 |
1,788 |
OS X OpenSource RSS |
|
|
|
2 |
2,179 |
Solaris |
|
|
|
0 |
1,964 |
OS X OpenSource RSS |
|
|
|
0 |
1,645 |
OS X OpenSource RSS |
|
|
|
0 |
1,739 |
OS X OpenSource RSS |
|
|
|
0 |
1,995 |
OS X OpenSource RSS |
|
|
|
0 |
2,668 |
OS X OpenSource RSS |
|
|
|
0 |
1,864 |
OS X OpenSource RSS |
|
|
|
0 |
2,072 |
Complex Event Processing RSS News |
|
|
|
0 |
1,704 |
OS X OpenSource RSS |
|
|
|
0 |
1,245 |
UNIX and Linux RSS News |
|
|
|
0 |
917 |
Software Releases - RSS News |
|
|
|
0 |
2,238 |
OS X OpenSource RSS |
|
|
|
0 |
1,783 |
OS X OpenSource RSS |
|
|
|
0 |
1,764 |
OS X OpenSource RSS |
|
|
|
0 |
1,817 |
UNIX and Linux RSS News |
|
|
|
1 |
2,680 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,129 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
7,684 |
Solaris |
|
|
|
0 |
1,244 |
Software Releases - RSS News |
|
|
|
10 |
15,438 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,793 |
Software Releases - RSS News |
|
|
|
0 |
1,350 |
Software Releases - RSS News |
|
|
|
5 |
2,170 |
Shell Programming and Scripting |
|
|
|
0 |
5,000 |
UNIX and Linux RSS News |
|
|
|
0 |
1,118 |
Software Releases - RSS News |
|
|
|
0 |
1,511 |
Software Releases - RSS News |
|
|
|
3 |
2,047 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,647 |
UNIX and Linux RSS News |
|
|
|
0 |
1,812 |
Complex Event Processing RSS News |
|
|
|
7 |
6,717 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,739 |
Complex Event Processing RSS News |
|
|
|
0 |
1,287 |
Software Releases - RSS News |
|
|
|
0 |
1,835 |
Software Releases - RSS News |
|
|
|
0 |
3,028 |
Software Releases - RSS News |
|
|
|
0 |
1,763 |
Software Releases - RSS News |
atomic_bits(3C) atomic_bits(3C)
NAME
atomic_bits, atomic_set_long_excl, atomic_clear_long_excl - atomic set and clear bit operations
SYNOPSIS
#include <atomic.h>
int atomic_set_long_excl(volatile ulong_t *target, uint_t bit);
int atomic_clear_long_excl(volatile ulong_t *target, uint_t bit);
The atomic_set_long_excl() and atomic_clear_long_excl() functions perform an exclusive atomic bit set or clear operation on target. The
value of bit specifies the number of the bit to be modified within target. Bits are numbered from zero to one less than the maximum number
of bits in a long. If the value of bit falls outside of this range, the result of the operation is undefined.
The atomic_set_long_excl() and atomic_clear_long_excl() functions return 0 if bit was successfully set or cleared. They return -1 if bit
was already set or cleared.
No errors are defined.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Stable |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
atomic_add(3C), atomic_and(3C), atomic_cas(3C), atomic_dec(3C), atomic_inc(3C), atomic_or(3C), atomic_swap(3C), membar_ops(3C),
attributes(5), atomic_ops(9F)
13 May 2005 atomic_bits(3C)