#ifndef _TOOLS_LINUX_ASM_X86_ATOMIC_H #define _TOOLS_LINUX_ASM_X86_ATOMIC_H #include <linux/compiler.h> #include <linux/types.h> #include "rmwcc.h" #define LOCK_PREFIX "\n\tlock; " /* * Atomic operations that C can't guarantee us. Useful for * resource counting etc.. */ #define ATOMIC_INIT(i) { (i) } /** * atomic_read - read atomic variable * @v: pointer of type atomic_t * * Atomically reads the value of @v. */
static inline int atomic_read(const atomic_t *v) { return ACCESS_ONCE((v)->counter); }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
arnaldo carvalho de melo | arnaldo carvalho de melo | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
arnaldo carvalho de melo | arnaldo carvalho de melo | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
arnaldo carvalho de melo | arnaldo carvalho de melo | 14 | 100.00% | 1 | 100.00% |
Total | 14 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
arnaldo carvalho de melo | arnaldo carvalho de melo | 25 | 100.00% | 1 | 100.00% |
Total | 25 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
arnaldo carvalho de melo | arnaldo carvalho de melo | 115 | 100.00% | 1 | 100.00% |
Total | 115 | 100.00% | 1 | 100.00% |