atomic64_sub_and_test(9)

atomic64_sub_and_test9

Subtract value from variable and test result

Usage

int atomic64_sub_and_test(u64 delta, atomic64_t * ptr);

Arguments

delta

integer value to subtract

ptr

pointer to type atomic64_t

Overview

Atomically subtracts delta from ptr and returns true if the result is zero, or false for all other cases.

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.