/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 2823 char *devfs_path = NULL; local 2860 (void) resolve_link(devlink, NULL, NULL, &devfs_path, 0); 2865 if (devfs_path) { 2872 (void) strcpy(pwd_buf, devfs_path); 2875 free(devfs_path); 2908 free(devfs_path); 2912 free(devfs_path); 4470 devfsadm_read_link(di_node_t anynode, char *link, char **devfs_path) argument 4475 *devfs_path = NULL; 4487 *devfs_path 4556 resolve_link(char *devpath, char **content_p, int *type_p, char **devfs_path, int dangle) argument 4840 devfsadm_enumerate_int(char *devfs_path, int index, char **buf, devfsadm_enumerate_t rules[], int nrules) argument 4848 disk_enumerate_int(char *devfs_path, int index, char **buf, devfsadm_enumerate_t rules[], int nrules) argument 4860 devfsadm_enumerate_int_start(char *devfs_path, int index, char **buf, devfsadm_enumerate_t rules[], int nrules, char *start) argument 4872 devfsadm_enumerate_char(char *devfs_path, int index, char **buf, devfsadm_enumerate_t rules[], int nrules) argument 4884 devfsadm_enumerate_char_start(char *devfs_path, int index, char **buf, devfsadm_enumerate_t rules[], int nrules, char *start) argument 4901 find_enum_id(devfsadm_enumerate_t rules[], int nrules, char *devfs_path, int index, char *min, int type, char **buf, int multiple) argument [all...] |
H A D | port_link.c | 370 portcmp(char *devfs_path, char *phys_path) argument 377 p1 = strrchr(devfs_path, ':'); 395 rv = strcmp(devfs_path, phys_path); 420 char *devfs_path; local 426 if (devfsadm_read_link(node, port, &devfs_path) == DEVFSADM_SUCCESS && 427 portcmp(devfs_path, phys_path) != 0) { 428 free(devfs_path); 432 free(devfs_path); 435 if (devfsadm_read_link(node, port, &devfs_path) == DEVFSADM_SUCCESS && 436 portcmp(devfs_path, phys_pat [all...] |
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | ri_init.c | 1403 mk_drv_inst(di_node_t node, char drv_inst[], char *devfs_path) argument 1410 devfs_path)); 1416 devfs_path)); 1440 char *devfs_path; local 1451 ((devfs_path = di_devfs_path(node)) != NULL)) { 1455 devfs_path); 1464 /* Free the devfs_path */ 1465 di_devfs_path_free(devfs_path); 1499 char *devfs_path; local 1537 devfs_path [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/ |
H A D | picldevtree.c | 1036 * paths the devfs_path is used to locate the correct path. 1043 char devfs_path[PATH_MAX]; local 1066 err = ptree_get_propval_by_name(parh, PICL_PROP_DEVFS_PATH, devfs_path, 1067 sizeof (devfs_path)); 1079 di_node = di_lookup_node(di_root, devfs_path); 1086 * The devfs_path will be used below to match the 1090 devfs_path, sizeof (devfs_path)); 1109 if (strcmp(di_path, devfs_path) != 0) { 1667 * first look for node with unit address in devfs_path 2125 char devfs_path[PATH_MAX]; local 3611 char *devfs_path; local [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/piclsbl/ |
H A D | piclsbl.c | 202 char *devfs_path; local 241 if (nvlist_lookup_string(nvlp, "devfs-path", &devfs_path)) 250 lookup.path = strdup(devfs_path);
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo.c | 86 devinfo_set_default_properties (HalDevice *d, HalDevice *parent, di_node_t node, char *devfs_path) argument 100 devfs_path, local 111 hal_device_property_set_string (d, "solaris.devfs_path", devfs_path); 153 char *devfs_path; local 158 devfs_path = di_devfs_path (node); 165 d = handler->add (parent, node, devfs_path, device_type); 168 di_devfs_path_free(devfs_path); 175 devinfo_hotplug_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler, int action, int front) argument 183 strlcpy (hotplug_event->un.devfs.devfs_path, devfs_pat 191 devinfo_add_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler) argument 197 devinfo_add_enqueue_at_front(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler) argument 203 devinfo_remove_enqueue(gchar *devfs_path, DevinfoDevHandler *handler) argument 335 devinfo_remove(gchar *devfs_path) argument 342 devinfo_remove_branch(gchar *devfs_path, HalDevice *d) argument 390 hotplug_event_begin_remove_devinfo(HalDevice *d, gchar *devfs_path, void *end_token) argument [all...] |
H A D | devinfo_storage.c | 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, cha 149 devinfo_ide_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 166 devinfo_ide_host_add(HalDevice *parent, di_node_t node, char *devfs_path) argument 183 devinfo_ide_device_add(HalDevice *parent, di_node_t node, char *devfs_path) argument 201 devinfo_ide_storage_add(HalDevice *parent, di_node_t node, char *devfs_path) argument 247 devinfo_scsi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 282 devinfo_scsi_storage_add(HalDevice *parent, di_node_t node, char *devfs_path) argument 372 devinfo_blkdev_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 401 devinfo_blkdev_storage_add(HalDevice *parent, di_node_t node, char *devfs_path) argument 440 devinfo_floppy_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 526 char *devfs_path; local 550 const char *devfs_path; local 589 devinfo_lofi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 595 devinfo_lofi_add_major(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type, gboolean rescan, HalDevice *lofi_d) argument 724 const char *devfs_path; local 800 devinfo_storage_minors(HalDevice *parent, di_node_t node, gchar *devfs_path, gboolean rescan) argument 983 char *devfs_path = m->devpath; local 1262 char *devfs_path = NULL; local 1608 devinfo_volume_hotplug_begin_remove(HalDevice *d, char *devfs_path, void *end_token) argument [all...] |
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | io.c | 752 char *devfs_path = NULL; local 793 if ((devfs_path = di_devfs_path(node)) != NULL) { 794 if (strcmp(rootpath, devfs_path) == 0) { 796 di_devfs_path_free(devfs_path); 799 di_devfs_path_free(devfs_path);
|
H A D | map.c | 5441 char *devfs_path = NULL; local 5469 if ((devfs_path = my_devfs_path(node)) == 5476 strlen(devfs_path) + 5481 my_devfs_path_free(devfs_path); 5484 sprintf(mpl->devpath, "%s%s", devfs_path, 5492 my_devfs_path_free(devfs_path); 5538 char *devfs_path; local 5575 if ((devfs_path = my_devfs_path(node)) != NULL) { 5582 my_devfs_path_free(devfs_path); 5590 if (!strstr(devfs_path, SLSH_DRV_NAME_SS [all...] |
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/desktop/common/ |
H A D | picldiag.c | 1022 uint32_t freq, char *name, char *model, char *status, char *devfs_path) 1064 if (devfs_path != NULL) 1065 strlcpy(card.notes, devfs_path, MAXSTRLEN); 1785 char *devfs_path; local 1879 &devfs_path); 1881 devfs_path = NULL; 1886 model, status, devfs_path); 1889 if (devfs_path != NULL) 1890 free(devfs_path); 2135 char *devfs_path; local 1021 add_io_card(uint32_t board, uint32_t bus_id, uint32_t slot, char *label, uint32_t freq, char *name, char *model, char *status, char *devfs_path) argument [all...] |
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/lw8/common/ |
H A D | lw8.c | 1055 uint32_t freq, char *name, char *model, char *status, char *devfs_path) 1094 if (devfs_path != NULL) 1095 strlcpy(card.notes, devfs_path, MAXSTRLEN); 1779 char *devfs_path; local 1873 &devfs_path); 1875 devfs_path = NULL; 1880 model, status, devfs_path); 1883 if (devfs_path != NULL) 1884 free(devfs_path); 2122 char *devfs_path; local 1054 add_io_card(uint32_t board, uint32_t bus_id, uint32_t slot, char *label, uint32_t freq, char *name, char *model, char *status, char *devfs_path) argument [all...] |
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/schumacher/common/ |
H A D | schumacher.c | 939 uint32_t freq, char *name, char *model, char *status, char *devfs_path) 972 if (devfs_path != NULL) 973 strlcpy(card.notes, devfs_path, MAXSTRLEN); 1692 char *devfs_path; local 1786 &devfs_path); 1788 devfs_path = NULL; 1793 model, status, devfs_path); 1796 if (devfs_path != NULL) 1797 free(devfs_path); 938 add_io_card(uint32_t board, uint32_t bus_id, uint32_t slot, char *label, uint32_t freq, char *name, char *model, char *status, char *devfs_path) argument
|
/illumos-gate/usr/src/lib/libdevice/ |
H A D | devctl.c | 106 devctl_bus_acquire(char *devfs_path, uint_t flags) argument 112 ((devfs_path != NULL) ? devfs_path : nullptr), flags); 114 if ((devfs_path == NULL) || ((flags != 0) && (flags != DC_EXCL))) { 120 return (dc_mkhndl(DEVCTL_BUS, devfs_path, oflags, NULL)); 129 devctl_device_acquire(char *devfs_path, uint_t flags) argument 135 ((devfs_path != NULL) ? devfs_path : nullptr), flags); 137 if ((devfs_path == NULL) || ((flags != 0) && (flags != DC_EXCL))) { 143 return (dc_mkhndl(DEVCTL_DEVICE, devfs_path, oflag 153 devctl_ap_acquire(char *devfs_path, uint_t flags) argument 181 devctl_pm_bus_acquire(char *devfs_path, uint_t flags) argument 205 devctl_pm_dev_acquire(char *devfs_path, uint_t flags) argument [all...] |
H A D | libdevice.h | 48 devctl_device_acquire(char *devfs_path, uint_t flags); 51 devctl_bus_acquire(char *devfs_path, uint_t flags); 54 devctl_ap_acquire(char *devfs_path, uint_t flags); 57 devctl_pm_dev_acquire(char *devfs_path, uint_t flags); 60 devctl_pm_bus_acquire(char *devfs_path, uint_t flags);
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devfsinfo.c | 1401 * devfs_path - the pathname of interest. This must be the physcical device 1412 devfs_path_to_drv(char *devfs_path, char *drv_buf) argument 1423 if (devfs_path == NULL) { 1427 if (strlen(devfs_path) >= MAXPATHLEN) 1430 if (*devfs_path != '/') 1435 (void) strcpy(driver_path, devfs_path); 1466 /* use the last component of devfs_path as the driver name */
|
H A D | device_info.h | 92 extern int devfs_path_to_drv(char *devfs_path, char *drv_buf);
|
H A D | devinfo_devlink.c | 1495 const char *devfs_path, 1515 strcmp(cmnp->node->path, devfs_path) == 0) { 1521 strcmp(cmnp->node->path, devfs_path) == 0) { 1493 get_last_minor( struct di_devlink_handle *hdp, const char *devfs_path, const char *minor_name, int flags) argument
|
H A D | devinfo_devlink.h | 396 const char *devfs_path, const char *minor_name, int flags);
|
H A D | devinfo_devperm.c | 270 * devfs_path: Returns malloced string: /devices path w/out "/devices" 273 devfs_resolve_link(char *devpath, char **devfs_path) argument 281 if (devfs_path) { 282 *devfs_path = NULL; 316 return (devfs_resolve_link(stage_link, devfs_path)); 319 if (devfs_path) { 320 *devfs_path = strdup(ptr); 321 if (*devfs_path == NULL) { 338 char *devfs_path = NULL; local 342 if (devfs_resolve_link(path, &devfs_path) [all...] |
/illumos-gate/usr/src/lib/libcfgadm/common/ |
H A D | config_admin.c | 1503 char *devfs_path; local 1542 devfs_path = di_devfs_path(node); 1544 DEVICES_DIR, devfs_path, name); 1545 di_devfs_path_free(devfs_path); 1608 devfs_path = di_devfs_path(node); 1610 DEVICES_DIR, devfs_path, name); 1611 di_devfs_path_free(devfs_path); 2231 char *devfs_path; local 2238 devfs_path = di_devfs_path(node); 2244 if (devfs_path [all...] |
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | getdment.c | 57 static int dmap_resolve_link(char *devpath, char **devfs_path); 453 * devfs_path: Returns malloced string: /devices path w/out "/devices" 456 dmap_resolve_link(char *devpath, char **devfs_path) argument 464 if (devfs_path) { 465 *devfs_path = NULL; 499 return (dmap_resolve_link(stage_link, devfs_path)); 502 if (devfs_path) { 503 *devfs_path = strdup(ptr); 504 if (*devfs_path == NULL) {
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_pciexrc.c | 449 char *devfs_path; local 451 devfs_path = di_devfs_path(dnode); 452 if (devfs_path != NULL) { 453 if (strncmp(devfs_path, path, strlen(path)) == 0) {
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/xaui/ |
H A D | xaui.c | 206 char *devfs_path; local 242 devfs_path = di_devfs_path(dnode); 243 if (devfs_path == NULL) { 244 topo_mod_dprintf(mod, "NULL devfs_path\n"); 247 topo_mod_dprintf(mod, "devfs_path (%s)\n", devfs_path); 248 dev_path_len = strlen(devfs_path) + 1; 253 buf = xaui_trans_str(mod, devfs_path, "pci", dev_path_len); 256 buf = xaui_trans_str(mod, devfs_path, "niu", dev_path_len); 259 di_devfs_path_free(devfs_path); [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_cvt.c | 363 * state then check the devfs_path to 459 * the devfs_path since it is not 712 char *devfs_path, path_name[MAXPATHLEN], *lun_guid, *port_wwn; local 717 devfs_path = di_devfs_path(node); 718 strcpy(path_name, devfs_path); 719 di_devfs_path_free(devfs_path); 726 * state then check the devfs_path to
|
H A D | cfga_rcm.c | 432 char *devfs_path; local 450 if ((devfs_path = di_devfs_path(node)) == NULL) 452 (void) snprintf(disk_path, MAXPATHLEN, "%s%s", DEVICES, devfs_path); 453 di_devfs_path_free(devfs_path);
|