Lines Matching defs:devspec
47 static bool hostdisk_match(struct devsw *devsw, const char *devspec);
48 static int hostdisk_parsedev(struct devdesc **idev, const char *devspec, const char **path);
426 hostdisk_match(struct devsw *devsw, const char *devspec)
432 colon = strchr(devspec, ':');
435 cp = strdup(devspec);
436 cp[colon - devspec] = '\0';
443 hostdisk_parsedev(struct devdesc **idev, const char *devspec, const char **path)
452 cp = strchr(devspec, ':');
458 len = cp - devspec;
459 fn = strdup(devspec);