Scroll to navigation

ATOMIC64_SUB_AND_TES(9) Driver Basics ATOMIC64_SUB_AND_TES(9)

NAME

atomic64_sub_and_test - subtract value from variable and test result

SYNOPSIS

int atomic64_sub_and_test(u64 delta, atomic64_t * ptr);

ARGUMENTS

delta

integer value to subtract

ptr

pointer to type atomic64_t

DESCRIPTION

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

COPYRIGHT

May 2024 Kernel Hackers Manual 2.6.