Interface __PrefixOpSuffix

Inline function

SpaceUser/kernel
ContextSync/async/rt-irq
May blockNo
SPLAny
Dynamic memoryNo

#include <ARCH/BITOPS.H>

static __finline__ void __PrefixOpSuffix(type *ptr, type val);

Description

This family of inline functions perform an atomic logical operation on memory. The operation will be performed between val and ptr location and the result will be stored at ptr location.

Parts of function name — Op, Suffix and Prefix determine logical operation, data type and atomicity requirements.

Arguments

See also

__PrefixOpSuffixCondition __PrefixCMPXCHGSuffix