Lines Matching refs:tmpf
355 struct futex *f, *tmpf;
361 *newf = tmpf = NULL;
374 if (tmpf != NULL) {
375 if (FUTEX_LOCKED(tmpf))
376 futex_unlock(tmpf);
377 FUTEX_DESTROY(tmpf);
378 free(tmpf, M_FUTEX);
420 if (tmpf == NULL) {
422 tmpf = malloc(sizeof(*tmpf), M_FUTEX, M_WAITOK | M_ZERO);
423 tmpf->f_uaddr = uaddr;
424 tmpf->f_key = key;
425 tmpf->f_refcount = 1;
426 tmpf->f_bitset = FUTEX_BITSET_MATCH_ANY;
427 FUTEX_INIT(tmpf);
428 TAILQ_INIT(&tmpf->f_waiting_proc);
435 futex_lock(tmpf);
439 LIST_INSERT_HEAD(&futex_list, tmpf, f_list);
442 LIN_SDT_PROBE3(futex, futex_get0, new, uaddr, tmpf->f_refcount,
443 tmpf->f_key.shared);
445 uaddr, tmpf->f_refcount, tmpf->f_key.shared);
446 *newf = tmpf;