1ATOMIC_DEC_AND_TEST(9)           Driver Basics          ATOMIC_DEC_AND_TEST(9)
2
3
4

NAME

6       atomic_dec_and_test - decrement and test
7

SYNOPSIS

9       int atomic_dec_and_test(atomic_t * v);
10

ARGUMENTS

12       v
13           pointer of type atomic_t
14

DESCRIPTION

16       Atomically decrements v by 1 and returns true if the result is 0, or
17       false for all other cases.
18
20Kernel Hackers Manual 2.6.         June 2019            ATOMIC_DEC_AND_TEST(9)
Impressum