Lines Matching refs:dev_names
7029 devfsadm_free_dev_names(char **dev_names, int len) in devfsadm_free_dev_names() argument
7034 free(dev_names[i]); in devfsadm_free_dev_names()
7035 free(dev_names); in devfsadm_free_dev_names()
7051 char **dev_names = NULL; in devfsadm_lookup_dev_names() local
7063 dev_names = s_malloc(cb_arg.count * sizeof (char *)); in devfsadm_lookup_dev_names()
7064 if (dev_names == NULL) in devfsadm_lookup_dev_names()
7068 dev_names[i] = s_strdup(cb_arg.dev_names[i]); in devfsadm_lookup_dev_names()
7069 if (dev_names[i] == NULL) { in devfsadm_lookup_dev_names()
7070 devfsadm_free_dev_names(dev_names, i); in devfsadm_lookup_dev_names()
7071 dev_names = NULL; in devfsadm_lookup_dev_names()
7079 return (dev_names); in devfsadm_lookup_dev_names()
7969 free(x->dev_names[i]); in free_dev_names()
7984 (x->dev_names[x->count] = s_strdup(path)) == NULL) in devlink_cb()
7988 free(x->dev_names[x->count]); in devlink_cb()
8031 *dev_name = s_strdup(cb_arg.dev_names[0]); in lookup_dev_name()
8062 if (strncmp(cb_arg.dev_names[i], DEV_RDSK, in lookup_disk_dev_name()
8064 dev_name = s_strdup(cb_arg.dev_names[i]); in lookup_disk_dev_name()
8077 dev_name = s_strdup(cb_arg.dev_names[i]); in lookup_disk_dev_name()
8127 dev_name = s_strdup(cb_arg.dev_names[i]); in lookup_lofi_dev_name()
8184 if (strncmp(cb_arg.dev_names[i], DEV_PRINTERS, in lookup_printer_dev_name()
8186 dev_name = s_strdup(cb_arg.dev_names[i]); in lookup_printer_dev_name()
8193 dev_name = s_strdup(cb_arg.dev_names[0]); in lookup_printer_dev_name()