Lines Matching refs:lens
1247 int lens; in modctl_devid2paths() local
1323 for (i = 0, lens = 0; i < ndevs; i++) { in modctl_devid2paths()
1353 lens += len; in modctl_devid2paths()
1357 if (lens > ulens) { in modctl_devid2paths()
1372 lens++; /* add one for double termination */ in modctl_devid2paths()
1375 if (ulensp && copyout(&lens, ulensp, sizeof (lens))) { in modctl_devid2paths()
2158 int64_t lens; in modctl_devreaddir() local
2195 lens = 0; in modctl_devreaddir()
2197 lens += strlen(dirlist[i]) + 1; in modctl_devreaddir()
2199 lens++; /* add one for double termination */ in modctl_devreaddir()
2202 if (lens > ulens) { in modctl_devreaddir()
2207 paths = kmem_alloc(lens, KM_SLEEP); in modctl_devreaddir()
2217 if (copyout(paths, upaths, lens)) { in modctl_devreaddir()
2225 if (copyout(&lens, ulensp, sizeof (lens))) in modctl_devreaddir()
2232 kmem_free(paths, lens); in modctl_devreaddir()