Lines Matching refs:itd
584 struct thread *itd, *ntd; in thread_reap_domain() local
598 itd = (struct thread *)atomic_swap_ptr((uintptr_t *)&tdd->tdd_zombies, in thread_reap_domain()
600 if (itd == NULL) in thread_reap_domain()
615 while (itd != NULL) { in thread_reap_domain()
616 ntd = itd->td_zombie; in thread_reap_domain()
617 EVENTHANDLER_DIRECT_INVOKE(thread_dtor, itd); in thread_reap_domain()
618 tidbatch_add(&tidbatch, itd); in thread_reap_domain()
619 credbatch_add(&credbatch, itd); in thread_reap_domain()
620 MPASS(itd->td_limit != NULL); in thread_reap_domain()
621 if (lim != itd->td_limit) { in thread_reap_domain()
627 lim = itd->td_limit; in thread_reap_domain()
629 thread_free_batched(itd); in thread_reap_domain()
637 itd = ntd; in thread_reap_domain()