atomic_swap_ptr
atomic_op_alias(atomic_swap_ptr,_atomic_swap_32)
atomic_op_alias(atomic_swap_ptr,_atomic_swap_64)
atomic_swap_ptr(&ptm->ptm_waiters, NULL));
atomic_swap_ptr(&ptm->ptm_waiters, NULL));
val = atomic_swap_ptr(&ptm->ptm_owner, newval);
atomic_swap_ptr(&ptm->ptm_waiters, NULL));
(void)atomic_swap_ptr(&ptr->ptr_owner, (void *)new);
(void)atomic_swap_ptr(&ptr->ptr_owner, (void *)new);
if (atomic_swap_ptr(&tsc_sync_cpu, ci) != NULL) {
if (atomic_swap_ptr(&tsc_sync_cpu, NULL) != ci) {
m = atomic_swap_ptr(&usc->usc_rx_stream.m, NULL);
pipe = atomic_swap_ptr(pipeptr, NULL);
ibuf = atomic_swap_ptr(&usc->usc_ibuf, NULL);
xfer = atomic_swap_ptr(&usc->usc_rx_data[i].xfer, NULL);
xfer = atomic_swap_ptr(&usc->usc_tx_data[i].xfer, NULL);
xfer = atomic_swap_ptr(&usc->usc_tx_cmd.xfer, NULL);
xfer = atomic_swap_ptr(&usc->usc_tx_msg.xfer, NULL);
pipe = atomic_swap_ptr(&sc->rx_pipe[i], NULL);
pipe = atomic_swap_ptr(&sc->tx_pipe[i], NULL);
xfer = atomic_swap_ptr(&sc->rx_data[j][i].xfer, NULL);
xfer = atomic_swap_ptr(&sc->tx_data[j][i].xfer, NULL);
pipe = atomic_swap_ptr(&ch->pipe, pipe);
pipe = atomic_swap_ptr(&ch->sync_pipe, pipe);
pipe = atomic_swap_ptr(&ch->pipe, NULL);
pipe = atomic_swap_ptr(&ch->sync_pipe, NULL);
(void)atomic_swap_ptr(&ci->ci_biglock_wanted, owant);
n = (uintptr_t)atomic_swap_ptr((volatile void *)&rw->rw_owner,
#define atomic_exchange_explicit(o, n, m1) atomic_swap_ptr((o), (n))
atomic_swap_ptr(&bpf_ops, &bpf_ops_kernel);
m = atomic_swap_ptr(&wgp->wgp_pending, NULL);
if ((m = atomic_swap_ptr(&wgp->wgp_pending, NULL)) != NULL) {
if ((m = atomic_swap_ptr(&wgp->wgp_pending, m)) ==
if ((m = atomic_swap_ptr(&wgp->wgp_pending, m)) ==
m = atomic_swap_ptr(&wgp->wgp_pending, NULL);
con = atomic_swap_ptr(&cd->cd_new, NULL);
rl = atomic_swap_ptr(&rg->r_subset, NULL);
return atomic_swap_ptr(&ts->ts_map[tid], newt);
old = atomic_swap_ptr(&rcpu->rcpu_prevlwp, RCPULWP_WANTED);
old = atomic_swap_ptr(&rcpu->rcpu_prevlwp, l);
atf_swap(atomic_swap_ptr, void *, "%p");
ATF_TP_ADD_TC(tp, atomic_swap_ptr);