Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.7-rc6 7 lines 141 B view raw
1cat <<EOF 2 ${int} r, o = *old; 3 r = raw_${atomic}_cmpxchg${order}(v, o, new); 4 if (unlikely(r != o)) 5 *old = r; 6 return likely(r == o); 7EOF