Lines Matching refs:tmpf
345 struct futex *f, *tmpf; in futex_get0() local
351 *newf = tmpf = NULL; in futex_get0()
364 if (tmpf != NULL) { in futex_get0()
365 if (FUTEX_LOCKED(tmpf)) in futex_get0()
366 futex_unlock(tmpf); in futex_get0()
367 FUTEX_DESTROY(tmpf); in futex_get0()
368 free(tmpf, M_FUTEX); in futex_get0()
410 if (tmpf == NULL) { in futex_get0()
412 tmpf = malloc(sizeof(*tmpf), M_FUTEX, M_WAITOK | M_ZERO); in futex_get0()
413 tmpf->f_uaddr = uaddr; in futex_get0()
414 tmpf->f_key = key; in futex_get0()
415 tmpf->f_refcount = 1; in futex_get0()
416 tmpf->f_bitset = FUTEX_BITSET_MATCH_ANY; in futex_get0()
417 FUTEX_INIT(tmpf); in futex_get0()
418 TAILQ_INIT(&tmpf->f_waiting_proc); in futex_get0()
425 futex_lock(tmpf); in futex_get0()
429 LIST_INSERT_HEAD(&futex_list, tmpf, f_list); in futex_get0()
432 LIN_SDT_PROBE3(futex, futex_get0, new, uaddr, tmpf->f_refcount, in futex_get0()
433 tmpf->f_key.shared); in futex_get0()
435 uaddr, tmpf->f_refcount, tmpf->f_key.shared); in futex_get0()
436 *newf = tmpf; in futex_get0()