/illumos-gate/usr/src/cmd/luxadm/ |
H A D | qlgcupdate.c | 150 char devpath[PATH_MAX], tmppath[PATH_MAX]; local 252 (void) strcpy(devpath, "/devices"); 253 if (q_getdevctlpath(devpath, (int *)&devcnt) == 0) { 624 q_getdevctlpath(char *devpath, int *devcnt) argument 633 if (lstat(devpath, &statbuf) < 0) { 635 MSGSTR(21016, "Error: %s lstat() error\n"), devpath); 639 if ((strstr(devpath, fc_trans) || 640 (strstr(devpath, fp_trans_id) && strstr(devpath, fp_trans))) && 641 strstr(devpath, "devct [all...] |
H A D | g_adm.c | 123 static int get_lun_capacity(char *devpath, 125 static int get_path_status(char *devpath, int *status); 234 print_errString(int errnum, char *devpath) argument 241 if (devpath == NULL) { 246 "%s - %s.\n\n", errStr, devpath); 5838 if (strncmp(path, pathlist->devpath, MAXPATHLEN) == 0) { 6012 mpl->devpath = (char *)calloc(1, MAXPATHLEN+1); 6013 if (mpl->devpath == NULL) { 6017 strncpy(mpl->devpath, mlist->logical_path, 6257 display_path_info(char *devpath, cha argument 6325 get_lun_capacity(char *devpath, struct scsi_capacity_16 *cap_data) argument 6347 get_path_status(char *devpath, int *status) argument [all...] |
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | findevs.c | 128 static int new_devpath(alias_t *ap, char *devpath); 196 char *devpath; local 210 devpath = di_devfs_path(node); 212 if ((bp = find_bus(args, devpath)) != NULL) { 213 di_devfs_path_free((void *) devpath); 226 if (strcmp(devpath, "/") == 0) { 227 di_devfs_path_free((void *) devpath); 232 (void) fprintf(stderr, "INFO: add_bus %s\n", devpath); 240 bp->name = strdup(devpath); 241 di_devfs_path_free((void *) devpath); 306 char *devpath; local 318 char *devpath; local 357 char *devpath; local 528 char *devpath; local 623 char *devpath; local 1742 new_devpath(alias_t *ap, char *devpath) argument 1796 char *devpath; local [all...] |
/illumos-gate/usr/src/cmd/format/ |
H A D | startup.c | 75 static void add_device_to_disklist(char *devname, char *devpath); 1580 add_device_to_disklist(char *devname, char *devpath) argument 1606 if ((search_file = open_disk(devpath, O_RDWR | O_NDELAY)) < 0) { 1785 search_disk->disk_path = alloc_string(devpath); 1797 search_disk->devfs_name = get_physical_name(devpath);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_ib.c | 865 char *devpath; local 929 devpath = ib_get_devicepath(ap_id); 930 if (devpath == NULL) { 939 i < IB_RETRY_DEVPATH && (devpath == NULL); i++) { 941 devpath = ib_get_devicepath(ap_id); 944 if (devpath == NULL) { 951 S_FREE(devpath); 977 devpath = ib_get_devicepath(ap_id); 978 if (devpath == NULL) { 984 if ((rv = ib_rcm_offline(ap_id, errstring, devpath, flag 2114 char *devpath = NULL; local [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | devid_cache.c | 503 * If a devpath is provided it will be used as the path to register the 509 e_devid_cache_register_cmn(dev_info_t *dip, ddi_devid_t devid, char *devpath) argument 524 if (devpath) { 525 pathlen = strlen(devpath) + 1; 527 bcopy(devpath, path, pathlen);
|
H A D | modctl.c | 975 char *devpath; local 993 devpath = i_ddi_strdup(pathbuf, KM_SLEEP); 1001 if (e_ddi_device_retired(devpath)) { 1002 cmn_err(CE_NOTE, "Device: already retired: %s", devpath); 1003 (void) e_ddi_retire_persist(devpath); 1004 kmem_free(devpath, strlen(devpath) + 1); 1013 kmem_free(devpath, strlen(devpath) + 1); 1026 retval = e_ddi_retire_device(devpath, cons_arra 1058 char *devpath; local 1088 char *devpath; local 2279 char *devpath, *cn_name_str; local [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/shp/common/ |
H A D | shp.c | 272 char *devpath; member in struct:searcharg 1097 if (strcmp(fulldevname, slotarg->devpath) == 0) { 1151 slotarg->devpath = (char *)devcomp;
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devfsmap.c | 1878 char *devpath; local 1883 if ((devpath = calloc(1, MAXPATHLEN)) == NULL) 1886 free(devpath); 1891 free(devpath); 1912 if (strlcpy(devpath, tokval, 1922 devpath, instval, bindname); 1961 free(devpath); 1967 free(devpath); 2042 char *devpath; local 2053 devpath [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_list.c | 2879 char *devpath; local 2898 devpath = calloc(1, devlen); 2899 if (devpath == NULL) { 2904 (void) snprintf(devpath, devlen, "%s%s", DEVICES_DIR, client_path); 2910 S_FREE(devpath); 2946 if (devctl_cmd(devpath, FPCFGA_DEV_GETSTATE, 2958 S_FREE(devpath);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/pci/common/ |
H A D | cfga.c | 262 char *devpath; member in struct:searcharg 1233 if (strcmp(fulldevname, slotarg->devpath) == 0) { 1287 slotarg->devpath = (char *)devcomp;
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/blade/fruaccess/ |
H A D | fru_access.c | 759 char devpath[PATH_MAX]; local 776 devpath, PATH_MAX); 810 (void) strlcpy(cont_hash_obj->u.cont_obj->device_pathname, devpath, 811 sizeof (devpath));
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/ |
H A D | fru_access.c | 767 char devpath[PATH_MAX]; local 785 devpath, PATH_MAX); 819 (void) strlcpy(cont_hash_obj->u.cont_obj->device_pathname, devpath, 820 sizeof (devpath)); 824 device_fd = open(devpath, O_RDONLY); 848 (void) snprintf(devpath, PATH_MAX, PICLD_PLAT_PLUGIN_DIRF, 850 (void) strlcat(devpath, FRU_CONTAINER_CONF, PATH_MAX); 851 retval = access(devpath, R_OK); 855 (void) snprintf(devpath, PATH_MAX, "%s/%s", 857 retval = access(devpath, R_O [all...] |
/illumos-gate/usr/src/cmd/power/ |
H A D | handlers.c | 558 devpath(char **destp, char *src, int *errp) function 624 if (devpath(&first, src, &upval)) 634 if (devpath(destp, src, &upval)) { 786 if (devpath(&pmreq.physpath, LINEARG(1), &upval))
|
/illumos-gate/usr/src/cmd/th_tools/ |
H A D | th_define.c | 1053 char *devpath) 1170 (void) fprintf(fp, "devpath=/devices%s\n\n", devpath); 1289 char *devpath) 1356 log2errdefs(fd, errdef, &(errstate->log), devpath); 1387 thr_collect(void *arg, char *devpath) argument 1408 collect_state(fd, BOFI_CHK_STATE_W, &hi->es, &hi->ed, devpath); 1761 char devpath[MAXPATHLEN]; local 1778 if (getpath(devpath, inst, name, MAXPATHLEN) != -1) { 1779 devpathp = devpath; 1052 log2errdefs(int fd, struct bofi_errdef *edp, struct acc_log *log, char *devpath) argument 1286 collect_state(int fd, int cmd, struct bofi_errstate *errstate, struct bofi_errdef *errdef, char *devpath) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socksyscalls.c | 98 * First the library calls this with a NULL devpath. If this fails 101 * devpath for the kernel to use. 104 so_socket(int family, int type_w_flags, int protocol, char *devpath, argument 119 if (devpath != NULL) { 124 if ((error = copyinstr(devpath, buf, 1658 /* sockparams_create frees mod name and devpath upon failure */
|
H A D | socksubr.c | 132 sogetvp(char *devpath, vnode_t **vpp, int uioflag) argument 144 error = lookupname(devpath, uioflag, FOLLOW, NULLVPP, &vp); 155 * If devpath went through devfs, the device should already 156 * be configured. If devpath is a mknod file, however, we
|
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_brand.c | 1397 char *devpath, int version) 1404 protocol, devpath, version)); 1396 s10_so_socket(sysret_t *rval, int domain, int type, int protocol, char *devpath, int version) argument
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet.c | 2511 char *devpath; local 2516 devpath = UDP6DEV; 2521 devpath = UDPDEV; 2523 if ((fd = open(devpath, O_RDONLY)) < 0) {
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | map.c | 4295 * The arg: devpath should be the physical path to device. 4306 g_get_multipath(char *devpath, struct dlist **multipath_list, argument 4312 " device at path: %s\n", devpath); 4314 /* return invalid path if devpath is NULL */ 4315 if (devpath == NULL) { 4323 if (strstr(devpath, DRV_NAME_SSD) != NULL) { 4324 err = get_multipath_disk(devpath, multipath_list, wwn_list); 4326 err = get_multipath(devpath, multipath_list, wwn_list); 4336 * devpath: device path to for requested multipath info 4345 get_multipath_disk(char *devpath, struc argument 4425 get_multipath(char *devpath, struct dlist **multipath_list, struct wwn_list_struct *wwn_list) argument [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/ |
H A D | piclfrudr.c | 2313 update_disk_node(char *fruname, char *devpath) argument 2350 err = ptree_get_node_by_path(devpath, &devhdl);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa.c | 3846 spa_generate_rootconf(char *devpath, char *devid, uint64_t *guid) argument 3852 if (vdev_disk_read_rootlabel(devpath, devid, &config) != 0) 3930 spa_import_rootpool(char *devpath, char *devid) argument 3942 config = spa_generate_rootconf(devpath, devid, &guid); 3945 if (strstr(devpath, "/iscsi/ssd") != NULL) { 3947 get_iscsi_bootpath_phy(devpath); 3948 config = spa_generate_rootconf(devpath, devid, &guid); 3954 devpath);
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 1091 mount_one_dev(zlog_t *zlogp, char *devpath, zone_mnt_t mount_cmd) argument 1103 if (di_prof_init(devpath, &prof)) {
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 4418 * Found a devpath which matches a RE in the remove structure. 4422 matching_dev(char *devpath, void *data) argument 4429 vprint(RECURSEDEV_MID, "%sexamining devpath = '%s'\n", fcn, 4430 devpath); 4436 if (nfphash_lookup(devpath + norm_len) != NULL) 4443 if (resolve_link(devpath, NULL, NULL, NULL, 1) == TRUE) { 4449 devpath += norm_len; 4451 vprint(RECURSEDEV_MID, "%scalling callback %s\n", fcn, devpath); 4454 (cleanup_data->rm->remove->callback_fcn))(devpath); 4457 (cleanup_data->rm->remove->callback_fcn))(devpath); 4556 resolve_link(char *devpath, char **content_p, int *type_p, char **devfs_path, int dangle) argument [all...] |
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/qlc/ |
H A D | ql_api.h | 1520 int8_t *devpath; member in struct:ql_adapter_state
|