0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 52.15.233.83


Current Path : /lib/modules/5.4.0-1103-aws/build/scripts/atomic/fallbacks/
Upload File :
Current File : //lib/modules/5.4.0-1103-aws/build/scripts/atomic/fallbacks/inc_and_test

cat <<EOF
/**
 * ${atomic}_inc_and_test - increment and test
 * @v: pointer of type ${atomic}_t
 *
 * Atomically increments @v by 1
 * and returns true if the result is zero, or false for all
 * other cases.
 */
static inline bool
${atomic}_inc_and_test(${atomic}_t *v)
{
	return ${atomic}_inc_return(v) == 0;
}
EOF