Lines Matching refs:tmpf
342 struct futex *f, *tmpf; in futex_get0() local
348 *newf = tmpf = NULL; in futex_get0()
361 if (tmpf != NULL) { in futex_get0()
362 if (FUTEX_LOCKED(tmpf)) in futex_get0()
363 futex_unlock(tmpf); in futex_get0()
364 FUTEX_DESTROY(tmpf); in futex_get0()
365 free(tmpf, M_FUTEX); in futex_get0()
407 if (tmpf == NULL) { in futex_get0()
409 tmpf = malloc(sizeof(*tmpf), M_FUTEX, M_WAITOK | M_ZERO); in futex_get0()
410 tmpf->f_uaddr = uaddr; in futex_get0()
411 tmpf->f_key = key; in futex_get0()
412 tmpf->f_refcount = 1; in futex_get0()
413 tmpf->f_bitset = FUTEX_BITSET_MATCH_ANY; in futex_get0()
414 FUTEX_INIT(tmpf); in futex_get0()
415 TAILQ_INIT(&tmpf->f_waiting_proc); in futex_get0()
422 futex_lock(tmpf); in futex_get0()
426 LIST_INSERT_HEAD(&futex_list, tmpf, f_list); in futex_get0()
429 LIN_SDT_PROBE3(futex, futex_get0, new, uaddr, tmpf->f_refcount, in futex_get0()
430 tmpf->f_key.shared); in futex_get0()
432 uaddr, tmpf->f_refcount, tmpf->f_key.shared); in futex_get0()
433 *newf = tmpf; in futex_get0()