1 #include <arch/x86_64/include/asm/cmpxchg.h> 2 __try_cmpxchg_q(uint64_t * ptr,uint64_t * old_ptr,uint64_t * new_ptr)3 bool __try_cmpxchg_q(uint64_t *ptr, uint64_t *old_ptr, uint64_t *new_ptr) 4 { 5 bool success = __raw_try_cmpxchg(ptr, old_ptr, *new_ptr, 8); 6 return success; 7 }