Home
last modified time | relevance | path

Searched refs:TAILQ_FIRST (Results 1 – 25 of 65) sorted by relevance

123

/xnu-12377.1.9/bsd/sys/
H A Dqueue.h629 TAILQ_FIRST((head)) != NULL && \
630 TAILQ_FIRST((head))->field.tqe_prev != \
631 &TAILQ_FIRST((head)))) \
666 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
669 for ((var) = TAILQ_FIRST((head)); \
674 for ((var) = TAILQ_FIRST((head)); \
695 (head)->tqh_last = &TAILQ_FIRST((head)); \
700 TAILQ_FIRST((head)) = NULL; \
701 (head)->tqh_last = &TAILQ_FIRST((head)); \
733 if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL) \
[all …]
/xnu-12377.1.9/bsd/net/
H A Dnwk_wq.c77 while (TAILQ_FIRST(&nwk_wq_head) == NULL) { in nwk_wq_thread_cont()
88 VERIFY(TAILQ_FIRST(&temp_nwk_wq_head) != NULL); in nwk_wq_thread_cont()
H A Dpf_ioctl.c713 rule = TAILQ_FIRST(ruleset->rules[rs_num].active.ptr); in pf_get_pool()
724 rule = TAILQ_FIRST(ruleset->rules[rs_num].inactive.ptr); in pf_get_pool()
752 while ((mv_pool_pa = TAILQ_FIRST(poola)) != NULL) { in pf_mv_pool()
763 while ((empty_pool_pa = TAILQ_FIRST(poola)) != NULL) { in pf_empty_pool()
850 for (p = TAILQ_FIRST(head); p != NULL && in tagname2tag()
893 for (p = TAILQ_FIRST(head); p != NULL; p = next) { in tag_unref()
976 while ((rule = TAILQ_FIRST(rs->rules[rs_num].inactive.ptr)) != NULL) { in pf_begin_rules()
1003 while ((rule = TAILQ_FIRST(rs->rules[rs_num].inactive.ptr)) != NULL) { in pf_rollback_rules()
1147 r = TAILQ_FIRST(rs->rules[rs_num].active.ptr); in pf_commit_rules()
1176 while ((rule = TAILQ_FIRST(old_rules)) != NULL) { in pf_commit_rules()
[all …]
H A Dif_stf.c473 for (ia4 = TAILQ_FIRST(&in_ifaddrhead); in stf_getsrcifa6()
663 for (ia4 = TAILQ_FIRST(&in_ifaddrhead); in stf_checkaddr4()
/xnu-12377.1.9/bsd/security/audit/
H A Daudit_pipe.c363 while ((app = TAILQ_FIRST(&ap->ap_preselect_list)) != NULL) { in audit_pipe_preselect_flush_locked()
519 if (TAILQ_FIRST(&audit_pipe_list) == NULL) { in audit_pipe_submit()
554 if (TAILQ_FIRST(&audit_pipe_list) == NULL) { in audit_pipe_submit_user()
624 while ((ape = TAILQ_FIRST(&ap->ap_queue)) != NULL) { in audit_pipe_flush()
1015 while ((ape = TAILQ_FIRST(&ap->ap_queue)) != NULL && in audit_pipe_read()
1036 KASSERT(TAILQ_FIRST(&ap->ap_queue) == ape, in audit_pipe_read()
1069 if (TAILQ_FIRST(&ap->ap_queue) != NULL) { in audit_pipe_poll()
H A Daudit_worker.c462 while ((ar = TAILQ_FIRST(&audit_q))) { in audit_worker()
475 while ((ar = TAILQ_FIRST(&ar_worklist))) { in audit_worker()
H A Daudit_session.c1569 if (NULL == TAILQ_FIRST(&audit_sdev_list)) { in audit_sdev_submit()
1633 while ((ase = TAILQ_FIRST(&asdev->asdev_queue)) != NULL) { in audit_sdev_flush()
1914 while ((ase = TAILQ_FIRST(&asdev->asdev_queue)) != NULL && in audit_sdev_read()
1935 KASSERT(TAILQ_FIRST(&asdev->asdev_queue) == ase, in audit_sdev_read()
1968 if (NULL != TAILQ_FIRST(&asdev->asdev_queue)) { in audit_sdev_poll()
/xnu-12377.1.9/bsd/nfs/
H A Dnfs_upcall.c121 ep = TAILQ_FIRST(myqueue->ucq_queue); in nfsrv_uc_thread()
308 struct nfsrv_uc_arg *ep = TAILQ_FIRST(queue->ucq_queue); in nfsrv_uc_cleanup()
H A Dnfs_syscalls.c969 while ((slp = TAILQ_FIRST(&nfsrv_sockwait))) { in nfssvc_nfsd()
983 while ((slp = TAILQ_FIRST(&nfsrv_sockwork))) { in nfssvc_nfsd()
1553 for (unode = TAILQ_FIRST(&ulist->user_lru); unode; unode = unode_next) { in nfssvc_userstats()
1926 for (slp = TAILQ_FIRST(&nfsrv_socklist); slp != 0; slp = nslp) { in nfsrv_cleanup()
/xnu-12377.1.9/bsd/netinet6/
H A Dnd6_rtr.c1114 for (dr = TAILQ_FIRST(nd_router_listp); dr; in defrouter_lookup()
1226 dr = TAILQ_FIRST(&nd_defrouter_list); in defrouter_reset()
1236 dr = TAILQ_FIRST(&nd_defrouter_list); in defrouter_reset()
1636 if (!TAILQ_FIRST(nd_router_listp)) { in defrouter_select()
1693 dr = TAILQ_FIRST(nd_router_listp); in defrouter_select()
1875 dr = TAILQ_FIRST(nd_router_listp); in defrouter_select()
1907 for (dr = TAILQ_FIRST(nd_router_listp); dr; in defrouter_select()
2095 n = TAILQ_FIRST(nd_router_listp); in defrtrlist_update_common()
2191 for (dr = TAILQ_FIRST(nd_router_listp); dr; in defrtrlist_update_common()
3277 for (dr = TAILQ_FIRST(&nd_defrouter_list); dr; in pfxlist_onlink_check()
[all …]
H A Din6_ifattach.c1072 ifa = TAILQ_FIRST(&ifp->if_addrlist); in in6_ifdetach()
1162 ifa = TAILQ_FIRST(&ifp->if_addrlist); in in6_ifdetach()
/xnu-12377.1.9/bsd/kern/
H A Dsubr_eventhandler.c234 ep = TAILQ_FIRST(&list->el_entries); in eventhandler_deregister()
H A Dkern_aio.c1798 while ((entryp = TAILQ_FIRST(&queue->aioq_entries))) { in aio_get_some_work()
1860 if (entryp == TAILQ_FIRST(&entryp->procp->p_aio_activeq)) { in aio_delay_fsync_request()
3149 while ((entryp = TAILQ_FIRST(&wq_aio->wa_aioq_entries))) { in workq_aio_unpark_select_req_or_park_and_unlock()
3305 uth = TAILQ_FIRST(&wq_aio->wa_thidlelist); in workq_aio_wakeup_thread_internal()
3311 uth = TAILQ_FIRST(&wq_aio->wa_thidlelist); in workq_aio_wakeup_thread_internal()
H A Dkern_credential.c694 if (TAILQ_FIRST(&kauth_resolver_unsubmitted) == NULL) { in kauth_resolver_getwork_continue()
747 workp = TAILQ_FIRST(&kauth_resolver_unsubmitted); in kauth_resolver_getwork2()
835 while ((workp = TAILQ_FIRST(&kauth_resolver_unsubmitted)) == NULL) { in kauth_resolver_getwork()
1450 if (kip != TAILQ_FIRST(&kauth_identities)) { in kauth_identity_lru()
2844 if (gm != TAILQ_FIRST(&kauth_groups)) { in kauth_groups_lru()
H A Dkern_lockf.c1474 wakelock = TAILQ_FIRST(&listhead->lf_blkhd); in lf_wakelock()
1554 printf(" block %p\n", (void *)TAILQ_FIRST(&lock->lf_blkhd)); in lf_print()
H A Dkpi_socketfilter.c456 if (TAILQ_FIRST(&proto->pr_filter_head) != NULL) { in sflt_initsock()
473 TAILQ_FIRST(&proto->pr_filter_head); in sflt_initsock()
/xnu-12377.1.9/bsd/vfs/
H A Dvfs_cache.c1198 while ((ncp = TAILQ_FIRST(&vp->v_ncchildren))) { in vnode_update_identity()
2918 ncp = TAILQ_FIRST(&nchead); in cache_enter_locked()
3011 negp = TAILQ_FIRST(&neghead); in cache_enter_locked()
3270 (TAILQ_FIRST(&vp->v_ncchildren) == NULL) && in cache_purge_locked()
3284 while ((ncp = TAILQ_FIRST(&vp->v_ncchildren))) { in cache_purge_locked()
3302 (TAILQ_FIRST(&vp->v_ncchildren) == NULL) && in cache_purge()
/xnu-12377.1.9/bsd/netinet/
H A Dtcp_sack.c671 while ((q = TAILQ_FIRST(&tp->snd_holes)) != NULL) { in tcp_free_sackholes()
823 struct sackhole *p, *cur = TAILQ_FIRST(&tp->snd_holes); in tcp_sack_adjust()
H A Din_var.h291 for ((ia) = TAILQ_FIRST(&in_ifaddrhead); \
H A Din_gif.c384 for (ia4 = TAILQ_FIRST(&in_ifaddrhead); ia4; in gif_encapcheck4()
H A Dip_input.c2287 for (fp = TAILQ_FIRST(&ipq[i]); fp;) { in frag_timeout()
2308 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_timeout()
2309 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i]), DROP_REASON_IP_FRAG_DROPPED); in frag_timeout()
2342 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_drain()
2343 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i]), DROP_REASON_IP_FRAG_DRAINED); in frag_drain()
H A Dkpi_ipfilter.c117 while ((filter = TAILQ_FIRST(&tbr_filters))) { in ipf_unref()
/xnu-12377.1.9/tools/tests/affinity/
H A Dpool.c254 workp = TAILQ_FIRST(&(sp->input->queue)); in manager_fn()
H A Dsets.c243 workp = TAILQ_FIRST(&(sp->input->queue)); in manager_fn()
/xnu-12377.1.9/bsd/skywalk/mem/
H A Dskmem_slab.c227 sl = TAILQ_FIRST(&skm->skm_sl_partial_list); in skmem_slab_alloc_locked()

123