Lines Matching refs:nthreads

81  * taskq_t *taskq_create(name, nthreads, pri, minalloc, maxalloc, flags);
87 * specified, 'nthreads' specifies the maximum number of threads in
92 * single-list task queue is created with 'nthreads' threads
102 * executed in the order they are scheduled if nthreads == 1.
103 * If nthreads > 1, task execution order is not predictable.
108 * TASKQ_THREADS_CPU_PCT: This flag specifies that 'nthreads' should be
112 * and offline events, to keep the ratio. nthreads must be in
130 * taskq_t *taskq_create_instance(name, instance, nthreads, pri, minalloc,
136 * taskq_t *taskq_create_proc(name, nthreads, pri, minalloc, maxalloc, proc,
143 * taskq_t *taskq_create_sysdc(name, nthreads, minalloc, maxalloc, proc,
1556 * nthreads to reach 0 after setting
1805 taskq_create(const char *name, int nthreads, pri_t pri, int minalloc,
1810 return (taskq_create_common(name, 0, nthreads, pri, minalloc,
1824 taskq_create_instance(const char *name, int instance, int nthreads, pri_t pri,
1834 return (taskq_create_common(name, instance, nthreads,
1839 taskq_create_proc(const char *name, int nthreads, pri_t pri, int minalloc,
1845 return (taskq_create_common(name, 0, nthreads, pri, minalloc,
1850 taskq_create_sysdc(const char *name, int nthreads, int minalloc,
1856 return (taskq_create_common(name, 0, nthreads, minclsyspri, minalloc,
1861 taskq_create_common(const char *name, int instance, int nthreads, pri_t pri,
1893 ASSERT3S(nthreads, >=, 1);
1894 tq->tq_maxsize = nthreads;
1897 nthreads = max_nthreads = 1;
1901 ASSERT3S(nthreads, >=, 0);
1902 pct = nthreads;
1916 nthreads = 1; /* corrected in taskq_thread_create() */
1920 ASSERT3S(nthreads, >=, 1);
1921 max_nthreads = nthreads;
1937 tq->tq_nthreads_target = nthreads;
2172 int nthreads;
2222 nthreads = b->tqbucket_stat.tqs_tcreates -
2224 b->tqbucket_stat.tqs_maxthreads = MAX(nthreads,