Lines Matching defs:dirpath
317 char *dirpath;
330 dirpath = kmem_alloc(MAXPATHLEN, KM_SLEEP);
331 (void) ddi_pathname(dip, dirpath);
332 if (devfs_lookupname(dirpath, NULLVPP, &dirvp)) {
333 dcmn_err(("directory %s not found\n", dirpath));
334 kmem_free(dirpath, MAXPATHLEN);
338 kmem_free(dirpath, MAXPATHLEN);
503 char *dirpath, *devnm;
513 dirpath = kmem_alloc(MAXPATHLEN, KM_SLEEP);
515 (void) snprintf(dirpath, MAXPATHLEN, "/devices%s", path);
517 devnm = strrchr(dirpath, '/');
523 if (lookupname(dirpath, UIO_SYSSPACE, 0, NULL, &dirvp)) {
524 dcmn_err(("directory %s not found\n", dirpath));
525 kmem_free(dirpath, MAXPATHLEN);
541 kmem_free(dirpath, MAXPATHLEN);