Lines Matching defs:sfp
1399 struct selfd *sfp;
1411 STAILQ_FOREACH_SAFE(sfp, &stp->st_selq, sf_link, sfn) {
1412 fd = (int)(uintptr_t)sfp->sf_cookie;
1413 si = sfp->sf_si;
1414 selfdfree(stp, sfp);
1662 struct selfd *sfp;
1675 STAILQ_FOREACH_SAFE(sfp, &stp->st_selq, sf_link, sfn) {
1676 fd = (struct pollfd *)sfp->sf_cookie;
1677 si = sfp->sf_si;
1678 selfdfree(stp, sfp);
1856 selfdfree(struct seltd *stp, struct selfd *sfp)
1858 STAILQ_REMOVE(&stp->st_selq, sfp, selfd, sf_link);
1862 if (atomic_load_acq_ptr((uintptr_t *)&sfp->sf_si) != (uintptr_t)NULL) {
1863 mtx_lock(sfp->sf_mtx);
1864 if (sfp->sf_si != NULL) {
1865 TAILQ_REMOVE(&sfp->sf_si->si_tdlist, sfp, sf_threads);
1867 mtx_unlock(sfp->sf_mtx);
1869 free(sfp, M_SELFD);
1894 struct selfd *sfp;
1907 sfp = NULL;
1908 if ((sfp = stp->st_free1) != NULL)
1910 else if ((sfp = stp->st_free2) != NULL)
1918 * Initialize the sfp and queue it in the thread.
1920 sfp->sf_si = sip;
1921 sfp->sf_mtx = mtxp;
1922 STAILQ_INSERT_TAIL(&stp->st_selq, sfp, sf_link);
1934 TAILQ_INSERT_TAIL(&sip->si_tdlist, sfp, sf_threads);
1958 struct selfd *sfp;
1969 TAILQ_FOREACH_SAFE(sfp, &sip->si_tdlist, sf_threads, sfn) {
1971 * Once we remove this sfp from the list and clear the
1974 TAILQ_REMOVE(&sip->si_tdlist, sfp, sf_threads);
1975 stp = sfp->sf_td;
1986 atomic_store_rel_ptr((uintptr_t *)&sfp->sf_si, (uintptr_t)NULL);
2070 struct selfd *sfp;
2074 STAILQ_FOREACH_SAFE(sfp, &stp->st_selq, sf_link, sfn)
2075 selfdfree(stp, sfp);