1TEST_AND_CLEAR_BIT(9) Basic C Library Functions TEST_AND_CLEAR_BIT(9)
23
4
NAME
6test_and_clear_bit - Clear a bit and return its old value
7
SYNOPSIS
9int test_and_clear_bit(int nr, volatile unsigned long * addr);
10
ARGUMENTS
12nr
13Bit to clear
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. November 2011 TEST_AND_CLEAR_BIT(9)