Lines Matching refs:nthreads
191 taskq_create(const char *name, int nthreads, pri_t pri,
199 ASSERT3S(nthreads, >=, 0);
200 ASSERT3S(nthreads, <=, 100);
201 pct = MIN(nthreads, 100);
204 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100;
205 nthreads = MAX(nthreads, 1); /* need at least 1 thread */
207 ASSERT3S(nthreads, >=, 1);
216 tq->tq_active = nthreads;
217 tq->tq_nthreads = nthreads;
222 tq->tq_threadlist = kmem_alloc(nthreads * sizeof (thread_t), KM_SLEEP);
231 for (t = 0; t < nthreads; t++)
242 int nthreads = tq->tq_nthreads;
262 for (t = 0; t < nthreads; t++)
265 kmem_free(tq->tq_threadlist, nthreads * sizeof (thread_t));