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 v5.10-rc1 11 lines 254 B view raw
1cat <<EOF 2static __always_inline bool 3${arch}${atomic}_try_cmpxchg${order}(${atomic}_t *v, ${int} *old, ${int} new) 4{ 5 ${int} r, o = *old; 6 r = ${arch}${atomic}_cmpxchg${order}(v, o, new); 7 if (unlikely(r != o)) 8 *old = r; 9 return likely(r == o); 10} 11EOF