Lines Matching refs:devfs_path

58 HalDevice *devinfo_ide_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
59 static HalDevice *devinfo_ide_host_add(HalDevice *parent, di_node_t node, char *devfs_path);
60 static HalDevice *devinfo_ide_device_add(HalDevice *parent, di_node_t node, char *devfs_path);
61 static HalDevice *devinfo_ide_storage_add(HalDevice *parent, di_node_t node, char *devfs_path);
62 HalDevice *devinfo_scsi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
63 static HalDevice *devinfo_scsi_storage_add(HalDevice *parent, di_node_t node, char *devfs_path);
64 HalDevice *devinfo_blkdev_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
65 static HalDevice *devinfo_blkdev_storage_add(HalDevice *parent, di_node_t node, char *devfs_path);
66 HalDevice *devinfo_floppy_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
68 static HalDevice *devinfo_lofi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
70 static void devinfo_storage_minors(HalDevice *parent, di_node_t node, gchar *devfs_path, gboolean);
149 devinfo_ide_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type)
154 return (devinfo_ide_host_add(parent, node, devfs_path));
159 return (devinfo_ide_device_add(parent, node, devfs_path));
166 devinfo_ide_host_add(HalDevice *parent, di_node_t node, char *devfs_path)
172 devinfo_set_default_properties (d, parent, node, devfs_path);
177 devinfo_add_enqueue (d, devfs_path, &devinfo_ide_handler);
183 devinfo_ide_device_add(HalDevice *parent, di_node_t node, char *devfs_path)
189 devinfo_set_default_properties (d, parent, node, devfs_path);
195 devinfo_add_enqueue (d, devfs_path, &devinfo_ide_handler);
197 return (devinfo_ide_storage_add (d, node, devfs_path));
201 devinfo_ide_storage_add(HalDevice *parent, di_node_t node, char *devfs_path)
215 devinfo_set_default_properties (d, parent, node, devfs_path);
239 devinfo_storage_minors (d, node, (char *)devfs_path, FALSE);
247 devinfo_scsi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type)
261 devinfo_set_default_properties (d, parent, node, devfs_path);
276 devinfo_add_enqueue (d, devfs_path, &devinfo_scsi_handler);
278 return (devinfo_scsi_storage_add (d, node, devfs_path));
282 devinfo_scsi_storage_add(HalDevice *parent, di_node_t node, char *devfs_path)
291 devinfo_set_default_properties (d, parent, node, devfs_path);
335 devinfo_storage_minors (d, node, devfs_path, FALSE);
372 devinfo_blkdev_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type)
386 devinfo_set_default_properties (d, parent, node, devfs_path);
395 devinfo_add_enqueue (d, devfs_path, &devinfo_blkdev_handler);
397 return (devinfo_blkdev_storage_add (d, node, devfs_path));
401 devinfo_blkdev_storage_add(HalDevice *parent, di_node_t node, char *devfs_path)
411 devinfo_set_default_properties (d, parent, node, devfs_path);
432 devinfo_storage_minors (d, node, devfs_path, FALSE);
440 devinfo_floppy_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type)
485 HAL_INFO (("floppy devlink not found %s", devfs_path));
491 devinfo_set_default_properties (d, parent, node, devfs_path);
510 devinfo_add_enqueue (d, devfs_path, &devinfo_storage_handler);
526 char *devfs_path;
531 devfs_path = (char *)hal_device_property_get_string (parent, "solaris.devfs_path");
537 m = devinfo_storage_new_minor (devfs_path, WHOLE_DISK, devlink, dev, -1);
550 const char *devfs_path;
560 ((devfs_path = hal_device_property_get_string (v,
561 "solaris.devfs_path")) != NULL)) {
562 devinfo_remove_enqueue ((char *)devfs_path, NULL);
567 if ((devfs_path = hal_device_property_get_string(d, "solaris.devfs_path")) == NULL) {
568 HAL_INFO (("no devfs_path", hal_device_get_udi (d)));
572 if ((node = di_init (devfs_path, DINFOCPYALL)) == DI_NODE_NIL) {
573 HAL_INFO (("di_init %s failed %d", devfs_path, errno));
589 devinfo_lofi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type)
591 return (devinfo_lofi_add_major(parent,node, devfs_path, device_type, FALSE, NULL));
595 devinfo_lofi_add_major(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type,
616 devinfo_set_default_properties (d, parent, node, devfs_path);
624 devinfo_add_enqueue (d, devfs_path, &devinfo_lofi_handler);
656 "solaris.devfs_path", minor_path) == NULL)) {
724 const char *devfs_path;
741 if ((devfs_path = hal_device_property_get_string (d,
742 "solaris.devfs_path")) == NULL) {
743 HAL_INFO (("devfs_path not found %s", hal_device_get_udi (d)));
748 devinfo_remove_branch ((char *)devfs_path, d);
775 * For volume's devfs_path we'll use minor_path/slice instead of
800 devinfo_storage_minors(HalDevice *parent, di_node_t node, gchar *devfs_path, gboolean rescan)
912 hal_device_property_set_string (parent, "solaris.devfs_path", maindev_path);
950 "solaris.devfs_path", m->devpath);
973 devinfo_add_enqueue (parent, devfs_path, &devinfo_storage_handler);
983 char *devfs_path = m->devpath;
989 HAL_INFO (("volume_add: devfs_path=%s devlink=%s", devfs_path, devlink));
992 devinfo_set_default_properties (d, parent, node, devfs_path);
1039 devinfo_add_enqueue (d, devfs_path, &devinfo_volume_handler);
1262 char *devfs_path = NULL;
1268 devfs_path_orig = hal_device_property_get_string (d, "solaris.devfs_path");
1270 HAL_INFO (("device has no solaris.devfs_path"));
1277 if ((devfs_path = strdup (devfs_path_orig)) != NULL) {
1278 p = strrchr(devfs_path, ':');
1282 devfs_path = (char *)devfs_path_orig;
1285 if ((node = di_init (devfs_path, DINFOCPYALL)) == DI_NODE_NIL) {
1286 HAL_INFO (("di_init %s failed %d %s", devfs_path, errno, hal_device_get_udi (d)));
1290 devinfo_storage_minors (d, node, (char *)devfs_path, TRUE);
1294 if (devfs_path != devfs_path_orig) {
1295 free (devfs_path);
1339 v_devfs_path = (gchar *)hal_device_property_get_string (v, "solaris.devfs_path");
1608 devinfo_volume_hotplug_begin_remove (HalDevice *d, char *devfs_path, void *end_token)