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

NAME

6       set_bit - Atomically set a bit in memory
7

SYNOPSIS

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

ARGUMENTS

12       nr
13           the bit to set
14
15       addr
16           the address to start counting from
17

DESCRIPTION

19       This function is atomic and may not be reordered. See __set_bit if you
20       do not require the atomic guarantees.
21

NOTE

23       there are no guarantees that this function will not be reordered on non
24       x86 architectures, so if you are writing portable code, make sure not
25       to rely on its reordering guarantees.
26
27       Note that nr may be almost arbitrarily large; this function is not
28       restricted to acting on a single-word quantity.
29
31Kernel Hackers Manual 2.6.         June 2019                        SET_BIT(9)
Impressum