Lines Matching defs:ndevs
1221 int ndevs;
1223 ndevs = 0;
1225 ndevs++;
1226 return (ndevs);
1234 int ndevs = 0;
1237 ndevs += count_devs(pfp->pf_global.sl_dev);
1240 ndevs += count_devs(slp->sl_dev);
1242 return (ndevs);
1283 int ndevs;
1292 ndevs = count_per_file(psp->ps_files);
1293 ndevs += count_per_file(psp->ps_cfile);
1294 if (ndevs <= 0) {
1299 dnames = (const char **)malloc((ndevs+1) * sizeof (const char *));
1301 logerr("unable to allocate space for %d devices", ndevs + 1);
1306 qsort(dnames, ndevs, sizeof (const char *), devcmp);
1307 for (dnf = (dnp = dnames) + 1; dnf < dnames+ndevs; dnf++)
1329 int ndevs;
1379 ndevs = 0;
1381 ndevs++;
1386 * services; that's why we allocate for nsvcs * ndevs.
1389 ndevs * sizeof (*dep) + nsvcs * ndevs * sizeof (*sepp));
1404 sepp = (struct service_entry **)(dep + ndevs);