Lines Matching defs:driver
113 * Find information for (driver, instunit) device: return zero on failure.
119 drvinstunitpart2dev(char *driver, int instunit, char *part,
142 /* take <driver><instance><minor_name> snapshot if not established */
151 * 'driver'. The current code only detects 'md' metadevice 'units',
154 * For a metadevice, 'driver' is either "md" or "<setno>/md".
156 s = strstr(driver, "/md");
157 if ((strcmp(driver, "md") == 0) ||
158 (s && isdigit(*driver) && (strcmp(s, "/md") == 0))) {
166 if (isdigit(*driver)) {
167 mdsetno = atoi(driver);
174 driver = "md";
185 devpath = di_dim_path_dev(di_dim, driver, instance, part);
190 driver, instance, mm->minor_name)) != NULL)
269 driver, instance, NULL);
328 * "<driver><instunit>.<pid>.<phci-driver><instance>,<partition>".
330 * The <instunit> is a decimal number. The ".<pid>.<phci-driver><instance>",
334 * the scsi_vhci driver.
336 * NOTE: In the case of non-local metadevices, the format of "<driver>" in
344 char *initiator; /* ".<phci-driver>... */
347 char driver[KSTAT_STRLEN];
365 initiator = strrchr(ks_name, '.'); /* start of ".<pHCI-driver>" */
390 (void) strncpy(driver, ks_name, len);
391 driver[len] = '\0';
407 if (drvinstunitpart2dev(driver, instunit, part,
414 /* parse path information: ".t#.<phci-driver><instance>" */