1TEST_AND_CHANGE_BIT(9)     Basic C Library Functions    TEST_AND_CHANGE_BIT(9)
2
3
4

NAME

6       test_and_change_bit - Change a bit and return its old value
7

SYNOPSIS

9       int test_and_change_bit(int nr, volatile unsigned long * addr);
10

ARGUMENTS

12       nr
13           Bit to change
14
15       addr
16           Address to count from
17

DESCRIPTION

19       This operation is atomic and cannot be reordered. It also implies a
20       memory barrier.
21
23Kernel Hackers Manual 2.6.         June 2019            TEST_AND_CHANGE_BIT(9)
Impressum