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

NAME

6       atomic_sub_and_test - subtract value from variable and test result
7

SYNOPSIS

9       int atomic_sub_and_test(int i, atomic_t * v);
10

ARGUMENTS

12       i
13           integer value to subtract
14
15       v
16           pointer of type atomic_t
17

DESCRIPTION

19       Atomically subtracts i from v and returns true if the result is zero,
20       or false for all other cases.
21
23Kernel Hackers Manual 3.10         June 2019            ATOMIC_SUB_AND_TEST(9)
Impressum