Lines Matching defs:tq_nthreads
304 * * tq_nthreads - The number of threads in taskq_thread() for the
309 * not yet counted in tq_nthreads.
315 * - Indicates that tq_nthreads != tq_nthreads_target.
320 * During creation, tq_nthreads and tq_active are set to 0, and
327 * flag, and increments tq_nthreads. It stores the new value of
328 * tq_nthreads as its "thread_id", and stores its thread pointer in the
598 kstat_named_t tq_nthreads;
796 ASSERT(tq->tq_nthreads == 0);
1426 const boolean_t first = (tq->tq_nthreads == 0);
1430 ASSERT(tq->tq_nthreads < tq->tq_nthreads_target);
1469 while (tq->tq_nthreads != tq->tq_nthreads_target &&
1470 tq->tq_nthreads < TASKQ_CREATE_ACTIVE_THREADS) {
1528 thread_id = ++tq->tq_nthreads;
1541 if (tq->tq_nthreads == TASKQ_CREATE_ACTIVE_THREADS)
1559 if (thread_id == tq->tq_nthreads ||
1575 if (tq->tq_nthreads == tq->tq_nthreads_target) {
1580 if (tq->tq_nthreads < tq->tq_nthreads_target) {
1643 ASSERT(tq->tq_nthreads > 0);
1644 tq->tq_nthreads--;
1648 if (tq->tq_nthreads == tq->tq_nthreads_target) {
2088 while (tq->tq_nthreads != 0)
2256 tqsp->tq_nthreads.value.ui64 = tq->tq_nthreads;