Lines Matching refs:node
65 static int disk_callback_chan(di_minor_t minor, di_node_t node);
66 static int disk_callback_nchan(di_minor_t minor, di_node_t node);
67 static int disk_callback_blkdev(di_minor_t minor, di_node_t node);
68 static int disk_callback_wwn(di_minor_t minor, di_node_t node);
69 static int disk_callback_xvmd(di_minor_t minor, di_node_t node);
70 static int disk_callback_fabric(di_minor_t minor, di_node_t node);
71 static int disk_callback_sas(di_minor_t minor, di_node_t node);
72 static void disk_common(di_minor_t minor, di_node_t node, char *disk,
74 static char *diskctrl(di_node_t node, di_minor_t minor);
75 static int reserved_links_exist(di_node_t node, di_minor_t minor, int nflags);
186 disk_callback_chan(di_minor_t minor, di_node_t node)
194 driver = di_driver_name(node);
196 addr = di_bus_addr(node);
199 targ = di_instance(node);
203 disk_common(minor, node, disk, 0);
209 disk_callback_nchan(di_minor_t minor, di_node_t node)
215 addr = di_bus_addr(node);
218 disk_common(minor, node, disk, 0);
224 disk_callback_blkdev(di_minor_t minor, di_node_t node)
231 addr = di_bus_addr(node);
234 disk_common(minor, node, disk, RM_STALE);
239 disk_callback_wwn(di_minor_t minor, di_node_t node)
246 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, SCSI_ADDR_PROP_TARGET,
251 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, SCSI_ADDR_PROP_LUN,
259 disk_common(minor, node, disk, RM_STALE);
265 disk_callback_fabric(di_minor_t minor, di_node_t node)
275 if (di_prop_lookup_strings(DDI_DEV_T_ANY, node,
284 } else if (di_prop_lookup_bytes(DDI_DEV_T_ANY, node,
286 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node,
307 disk_common(minor, node, disk, RM_STALE);
313 disk_callback_sas(di_minor_t minor, di_node_t node)
326 if (di_prop_lookup_int64(DDI_DEV_T_ANY, node,
333 if ((!lun64_found) && (di_prop_lookup_ints(DDI_DEV_T_ANY, node,
342 if (di_prop_lookup_strings(DDI_DEV_T_ANY, node,
362 } else if (di_prop_lookup_ints(DDI_DEV_T_ANY, node,
386 disk_common(minor, node, disk, RM_STALE);
470 disk_callback_xvmd(di_minor_t minor, di_node_t node)
478 addr = di_bus_addr(node);
494 disk_common(minor, node, disk, 0);
500 * This function is called for every disk minor node.
505 disk_common(di_minor_t minor, di_node_t node, char *disk, int flags)
581 if (reserved_links_exist(node, minor, nflags) == DEVFSADM_SUCCESS) {
587 if (NULL == (ctrl = diskctrl(node, minor)))
617 (void) devfsadm_mklink(l_path, node, minor, nflags);
620 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, "removable-media",
626 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, "hotpluggable",
644 devfsadm_rm_stale_links(stale_re, l_path, node, minor);
655 diskctrl(di_node_t node, di_minor_t minor)
669 if ((devfspath = di_devfs_path(node)) == NULL) {
685 * numbers for a single physical controller. If we use node
778 reserved_links_exist(di_node_t node, di_minor_t minor, int nflags)
895 (void) devfsadm_mklink(l, node, minor, nflags);