Name
test_and_change_bit -- Change a bit and return its new value
Synopsis
int test_and_change_bit
(int nr, volatile void * addr);
Arguments
- nr
Bit to set
- addr
Address to count from
Description
This operation is atomic and cannot be reordered.
It also implies a memory barrier.