Can I use <stdatomic.h> from C11 in the Linux driver, or should I use Linux functions for memory barriers?
Can I use #include <stdatomic.h>and atomic_thread_fence()with memory_orderof C11 in the Linux driver (kernel space), or should I use the Memory function:
- http://lxr.free-electrons.com/source/Documentation/memory-barriers.txt
- http://lxr.free-electrons.com/source/Documentation/atomic_ops.txt
Using:
- Linux-kernel 2.6.18 and higher
- GCC 4.7.2 or more
+3