☰
Debian Codegraph
@
7.2.8-1
7.2.7-1
7.2.6-1
7.1.9-1
7.1.4-1
7.0.9-1
7.0.12-2
/
/
scripts
/
atomic
/
fallbacks
/
read_acquire
☽
☼
scripts/atomic/fallbacks/read_acquire
code
plain
raw
GPL-2
1991-2012 Linus Torvalds and many others
debian/copyright
1
cat <<EOF
2
${int} ret;
3
4
if (__native_word(${atomic}_t)) {
5
ret = smp_load_acquire(&(v)->counter);
6
} else {
7
ret = raw_${atomic}_read(v);
8
__atomic_acquire_fence();
9
}
10
11
return ret;
12
EOF