Lines Matching refs:nthreads
229 taskq_create(const char *name, int nthreads, pri_t pri,
237 ASSERT3S(nthreads, >=, 0);
238 ASSERT3S(nthreads, <=, 100);
239 pct = MIN(nthreads, 100);
242 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100;
243 nthreads = MAX(nthreads, 1); /* need at least 1 thread */
245 ASSERT3S(nthreads, >=, 1);
255 tq->tq_active = nthreads;
256 tq->tq_nthreads = nthreads;
261 tq->tq_threadlist = kmem_alloc(nthreads * sizeof (thread_t), KM_SLEEP);
270 for (t = 0; t < nthreads; t++)
281 int nthreads = tq->tq_nthreads;
301 for (t = 0; t < nthreads; t++)
304 kmem_free(tq->tq_threadlist, nthreads * sizeof (thread_t));