MCPcopy Create free account
hub / github.com/F-Stack/f-stack / taskqueue_member

Function taskqueue_member

freebsd/kern/subr_taskqueue.c:887–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

885 SWI_TQ_FAST, INTR_MPSAFE, &taskqueue_fast_ih));
886
887int
888taskqueue_member(struct taskqueue *queue, struct thread *td)
889{
890 int i, j, ret = 0;
891
892 for (i = 0, j = 0; ; i++) {
893 if (queue->tq_threads[i] == NULL)
894 continue;
895 if (queue->tq_threads[i] == td) {
896 ret = 1;
897 break;
898 }
899 if (++j >= queue->tq_tcount)
900 break;
901 }
902 return (ret);
903}

Callers 3

taskq_memberFunction · 0.85
unp_remove_dead_refFunction · 0.85
unp_restore_undead_refFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected