Lines Matching refs:pathbuf
974 char *pathbuf; in modctl_retire() local
987 pathbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP); in modctl_retire()
988 retval = copyinstr(path, pathbuf, MAXPATHLEN, &pathsz); in modctl_retire()
990 kmem_free(pathbuf, MAXPATHLEN); in modctl_retire()
993 devpath = i_ddi_strdup(pathbuf, KM_SLEEP); in modctl_retire()
994 kmem_free(pathbuf, MAXPATHLEN); in modctl_retire()
1057 char *pathbuf; in modctl_is_retired() local
1066 pathbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP); in modctl_is_retired()
1067 error = copyinstr(path, pathbuf, MAXPATHLEN, &pathsz); in modctl_is_retired()
1069 kmem_free(pathbuf, MAXPATHLEN); in modctl_is_retired()
1072 devpath = i_ddi_strdup(pathbuf, KM_SLEEP); in modctl_is_retired()
1073 kmem_free(pathbuf, MAXPATHLEN); in modctl_is_retired()
1087 char *pathbuf; in modctl_unretire() local
1096 pathbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP); in modctl_unretire()
1097 retval = copyinstr(path, pathbuf, MAXPATHLEN, &pathsz); in modctl_unretire()
1099 kmem_free(pathbuf, MAXPATHLEN); in modctl_unretire()
1102 devpath = i_ddi_strdup(pathbuf, KM_SLEEP); in modctl_unretire()
1103 kmem_free(pathbuf, MAXPATHLEN); in modctl_unretire()