1 cat <<EOF 1 cat <<EOF 2 return raw_${atomic}_inc_return(v) == !! 2 /** >> 3 * ${atomic}_inc_and_test - increment and test >> 4 * @v: pointer of type ${atomic}_t >> 5 * >> 6 * Atomically increments @v by 1 >> 7 * and returns true if the result is zero, or false for all >> 8 * other cases. >> 9 */ >> 10 static inline bool >> 11 ${atomic}_inc_and_test(${atomic}_t *v) >> 12 { >> 13 return ${atomic}_inc_return(v) == 0; >> 14 } 3 EOF 15 EOF
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.