Lines Matching refs:ninstances
124 int ninstances = 0, i;
159 ninstances++;
182 ninstances++;
190 sorted = (void *)alloca(ninstances * sizeof (kstat_instance_t *));
191 ninstances = 0;
199 sorted[ninstances++] = ksi;
203 if (ninstances == 0) {
208 qsort(sorted, ninstances, sizeof (kstat_instance_t *),
213 for (i = 0; i < ninstances; i++) {
215 ksi->ksi_next = i < ninstances - 1 ? sorted[i + 1] : NULL;