Lines Matching refs:kernel_name

98 static disk_t		*create_disk(char *deviceid, char *kernel_name,
102 static alias_t *find_alias(disk_t *diskp, char *kernel_name);
119 char *kernel_name, disk_t **diskp);
451 char kernel_name[MAXPATHLEN]; in add_devpath() local
462 (void) snprintf(kernel_name, sizeof (kernel_name), "%s%d", in add_devpath()
465 (void) have_disk(args, devidstr, kernel_name, &diskp); in add_devpath()
488 (void) snprintf(kernel_name, sizeof (kernel_name), "%s%d", in add_devpath()
497 if ((ap = find_alias(diskp, kernel_name)) == NULL) { in add_devpath()
498 if (new_alias(diskp, kernel_name, devlink_path, in add_devpath()
558 char kernel_name[MAXPATHLEN]; in add_devs() local
561 (void) snprintf(kernel_name, sizeof (kernel_name), "%s%d", in add_devs()
571 if (!have_disk(args, devidstr, kernel_name, &diskp)) { in add_devs()
577 diskp = create_disk(devidstr, kernel_name, args); in add_devs()
602 if ((ap = find_alias(diskp, kernel_name)) == NULL) { in add_devs()
603 if (new_alias(diskp, kernel_name, in add_devs()
901 dp->kernel_name, cp->name); in remove_controller()
954 create_disk(char *deviceid, char *kernel_name, struct search_args *args) in create_disk() argument
962 (void) fprintf(stderr, "INFO: create_disk %s\n", kernel_name); in create_disk()
987 if (kernel_name != NULL) { in create_disk()
988 diskp->kernel_name = strdup(kernel_name); in create_disk()
989 if (diskp->kernel_name == NULL) { in create_disk()
1151 find_alias(disk_t *diskp, char *kernel_name) in find_alias() argument
1157 if (libdiskmgt_str_eq(ap->kstat_name, kernel_name)) { in find_alias()
1515 have_disk(struct search_args *args, char *devidstr, char *kernel_name, in have_disk() argument
1530 if (libdiskmgt_str_eq(kernel_name, in have_disk()
1531 listp->kernel_name)) { in have_disk()
1671 new_alias(disk_t *diskp, char *kernel_name, char *devlink_path, in new_alias() argument
1697 if (kernel_name != NULL) { in new_alias()
1698 aliasp->kstat_name = strdup(kernel_name); in new_alias()