Introduction - If you have any usage issues, please Google them yourself
MSDN says in order to declare an interlocked function for use as an intrinsic, include intrin.h and put the function in a pragma intrinsic directive Kernel Device Driver for linux v2.13.6.