Lines Matching refs:subdir
2658 modrload(const char *subdir, const char *filename, struct modctl **rmodp) in modrload() argument
2669 if (subdir != NULL) { in modrload()
2679 size = strlen(subdir) + strlen(filename) + 2; in modrload()
2681 (void) sprintf(fullname, "%s/%s", subdir, filename); in modrload()
2700 if (subdir != NULL) in modrload()
2712 modload(const char *subdir, const char *filename) in modload() argument
2714 return (modrload(subdir, filename, NULL)); in modload()
2731 modload_qualified(const char *subdir, const char *p1, in modload_qualified() argument
2743 n = snprintf(p, resid, "%s/%s%s%s", subdir, p1, delim, p2); in modload_qualified()
2745 n = snprintf(p, resid, "%s/%s", subdir, p1); in modload_qualified()
2791 modloadonly(const char *subdir, const char *filename) in modloadonly() argument
2798 if (subdir != NULL) { in modloadonly()
2802 size = strlen(subdir) + strlen(filename) + 2; in modloadonly()
2804 (void) sprintf(fullname, "%s/%s", subdir, filename); in modloadonly()
2816 if (subdir != NULL) in modloadonly()
3179 mod_find_by_filename(char *subdir, char *filename) in mod_find_by_filename() argument
3185 if (subdir != NULL) in mod_find_by_filename()
3186 sublen = strlen(subdir); in mod_find_by_filename()
3196 if (strncmp(subdir, mod_filename, sublen) == 0 && in mod_find_by_filename()
4742 char *subdir; in ddi_modopen() local
4759 subdir = kmem_alloc(subdirlen, KM_SLEEP); in ddi_modopen()
4760 (void) strlcpy(subdir, modname, subdirlen); in ddi_modopen()
4763 subdir = "misc"; in ddi_modopen()
4768 retval = modrload(subdir, mod, &hmodp); in ddi_modopen()
4771 kmem_free(subdir, subdirlen); in ddi_modopen()