1TEST_AND_CHANGE_BIT(9) Basic C Library Functions TEST_AND_CHANGE_BIT(9)
23
4
NAME
6test_and_change_bit - Change a bit and return its old value
7
SYNOPSIS
9int test_and_change_bit(int nr, volatile unsigned long * addr);
10
ARGUMENTS
12nr
13Bit to change
1415
addr
16Address to count from
17
DESCRIPTION
19This operation is atomic and cannot be reordered. It also implies a
20memory barrier.
21
COPYRIGHT
23Kernel Hackers Manual 2.6. June 2019 TEST_AND_CHANGE_BIT(9)