Lines Matching refs:nthreads
300 taskq_create_proc(const char *name, int nthreads, pri_t pri, in taskq_create_proc() argument
308 ASSERT3S(nthreads, >=, 0); in taskq_create_proc()
309 ASSERT3S(nthreads, <=, 100); in taskq_create_proc()
310 pct = MIN(nthreads, 100); in taskq_create_proc()
313 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100; in taskq_create_proc()
314 nthreads = MAX(nthreads, 1); /* need at least 1 thread */ in taskq_create_proc()
316 ASSERT3S(nthreads, >=, 1); in taskq_create_proc()
325 tq->tq_active = nthreads; in taskq_create_proc()
326 tq->tq_nthreads = nthreads; in taskq_create_proc()
331 tq->tq_threadlist = kmem_alloc(nthreads * sizeof (thread_t), KM_SLEEP); in taskq_create_proc()
340 for (t = 0; t < nthreads; t++) in taskq_create_proc()
351 int nthreads = tq->tq_nthreads; in taskq_destroy() local
371 for (t = 0; t < nthreads; t++) in taskq_destroy()
374 kmem_free(tq->tq_threadlist, nthreads * sizeof (thread_t)); in taskq_destroy()