/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | cfg_link.c | 1079 char *devpath = NULL; local 1130 devpath = pci_cfg_devpath(node, minor); 1131 if (devpath == NULL) 1133 pci_cfg_rm_invalid_links(devpath, linkbuf); 1134 free(devpath);
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_subr.c | 508 fab_find_rppath_by_devpath(fmd_hdl_t *hdl, const char *devpath) argument 517 * Line 4: See if the "dev" prop is parent of devpath 524 "/@value", PCIEX_ROOT, devpath);
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | hermon.c | 264 char *devpath; local 280 devpath = di_devfs_path(thisnode); 285 di_devfs_path_free(devpath); 289 /* calloc enough for /devices + devpath + ":devctl" + '\0' */ 290 devlength = strlen(devpath) + strlen(devprefix) + 297 di_devfs_path_free(devpath); 301 "%s%s%s", devprefix, devpath, devsuffix); 308 di_devfs_path_free(devpath); 318 di_devfs_path_free(devpath); 329 di_devfs_path_free(devpath); [all...] |
H A D | ses.c | 293 char *devpath; local 319 if ((devpath = calloc(1, MAXPATHLEN + 1)) == NULL) { 331 devpath = di_devfs_path(thisnode); 339 free(devpath); 343 /* calloc enough for /devices + devpath + devsuffix + '\0' */ 344 devlength = strlen(devpath) + strlen(devprefix) + 352 free(devpath); 357 "%s%s%s", devprefix, devpath, devsuffix); 367 free(devpath); 382 free(devpath); [all...] |
H A D | tavor.c | 613 char *devpath; local 628 devpath = di_devfs_path(thisnode); 635 di_devfs_path_free(devpath); 639 /* calloc enough for /devices + devpath + ":devctl" + '\0' */ 640 devlength = strlen(devpath) + strlen(devprefix) + 646 di_devfs_path_free(devpath); 651 "%s%s%s", devprefix, devpath, devsuffix); 661 di_devfs_path_free(devpath); 670 di_devfs_path_free(devpath); 681 di_devfs_path_free(devpath); [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | ddifm.c | 300 * 'devpath' argument - in this case 'dip' is the MPXIO client node and 301 * devpath should be the path through the pHCI devinfo node to the 314 * just a dip: devpath, minor_name, and devid are all NULL. The 316 * non-null devpath, minor_name, and devid arguments depending on 339 const char *devpath, const char *minor_name, const char *devid, 421 if (devpath) { 422 (void) strlcpy(path, devpath, sizeof (path)); 424 /* derive devpath from dip */ 338 fm_dev_ereport_postv(dev_info_t *dip, dev_info_t *eqdip, const char *devpath, const char *minor_name, const char *devid, const char *tpl0, const char *error_class, uint64_t ena, int sflag, nvlist_t *pl, va_list ap) argument
|
H A D | fm.c | 947 * devpath string <devpath> 955 const char *devpath, const char *devid, const char *tpl0) 972 err |= nvlist_add_string(fmri_dev, FM_FMRI_DEV_PATH, devpath); 954 fm_fmri_dev_set(nvlist_t *fmri_dev, int version, const nvlist_t *auth, const char *devpath, const char *devid, const char *tpl0) argument
|
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/ |
H A D | ttymux_dacf.c | 474 char *devpath; local 484 devpath = kmem_alloc(MAXPATHLEN+2, KM_SLEEP); 490 if (prom_ihandle_to_path(ihdls[i], devpath, MAXPATHLEN) == 0) 499 if (strrchr(devpath, ':') == NULL) 500 (void) strcat(devpath, ":a"); /* assume :a ! */ 502 if ((cn = get_aconsole(ms, devpath)) == 0) { 504 " consoles - ignoring %s\n", devpath); 515 cn->sm_path = kmem_alloc(strlen(devpath) + 1, KM_SLEEP); 516 (void) strcpy(cn->sm_path, devpath); 520 kmem_free(devpath, MAXPATHLE [all...] |
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | fcalupdate.c | 582 char devpath[PATH_MAX]; local 585 (void) strcpy(devpath, "/devices"); 588 (void) getsocpath(devpath, (int *)&devcnt); 838 getsocpath(char *devpath, int *devcnt) argument 845 if (lstat(devpath, &statbuf) < 0) { 847 MSGSTR(4539, "Error: %s lstat() error\n"), devpath); 859 if (strstr(devpath, ONBOARD_SOCAL)) 862 if (strstr(devpath, SOCAL_STR)) { 864 if ((loadsocpath(devpath, devcnt)) < 0) { 867 devpath); [all...] |
/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_misc.c | 270 #define devpath un.un_devpath macro 281 error = i_devname_to_promname(cf->cf_devfs, devpath, 283 if (error || strcmp(devpath, cf->cf_dev_prom)) { 285 cf->cf_dev_prom, devpath, rerun); 414 error = i_devname_to_promname(cf->cf_devfs, devpath, OBP_MAXPATHLEN); 415 if (error || strcmp(devpath, cf->cf_dev_prom)) { 417 cf->cf_dev_prom, devpath, rerun);
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | topo_gather.c | 230 char *devpath = NULL; local 281 &devpath, &err) == 0) { 287 (void) snprintf(devp, PATH_MAX, "%s:q,raw", devpath); 290 topo_hdl_strfree(thp, devpath); 297 TOPO_STORAGE_LOGICAL_DISK_NAME, &devpath, &err) == 0) { 299 devpath); 300 topo_hdl_strfree(thp, devpath);
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk_common.c | 515 const char *devpath; local 518 devpath = di_devlink_path(dl); 519 if ((dnode == NULL) || (devpath == NULL)) 523 if (((ctds = strrchr(devpath, '/')) != NULL) && 528 dnode->ddn_lpath = topo_mod_strdup(mod, ctds ? ctds + 1 : devpath); 954 char *devpath, *fullpath; local 970 devpath = NULL; 977 TOPO_IO_DEV_PATH, &devpath, &err) != 0) 983 pathlen = strlen(devpath) + sizeof ("/devices") + 989 (void) snprintf(fullpath, pathlen, "/devices%s%s", devpath, [all...] |
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/ |
H A D | zfs_mod.c | 313 * <path>: This is a devpath, and the target is one 379 devpath_iter(const char *devpath, zfs_process_func_t func, boolean_t wholedisk) argument 383 data.dd_compare = devpath; 403 devid_iter(const char *devpath, zfs_process_func_t func, boolean_t wholedisk) argument 405 size_t len = strlen(devpath) + sizeof ("/devices") + 417 (void) snprintf(fullpath, len, "/devices%s%s", devpath, PHYS_PATH); 462 char *devpath, *devname; local 473 if (nvlist_lookup_string(nvl, DEV_PHYS_PATH, &devpath) != 0) 482 (void) strlcpy(realpath, devpath, sizeof (realpath)); 496 devpath, colo 604 char *devpath, *cptr, *oldfru = NULL; local [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_sata.c | 575 char *devpath; local 650 devpath = sata_get_devicepath(ap_id); 651 if (devpath == NULL) { 658 for (i = 0; i < 12 && (devpath == NULL); i++) { 660 devpath = sata_get_devicepath(ap_id); 663 if (devpath == NULL) { 669 S_FREE(devpath); 715 devpath = sata_get_devicepath(ap_id); 716 if (devpath == NULL) { 723 if ((rv = sata_rcm_offline(ap_id, errstring, devpath, flag 1237 char *devpath = NULL; local 2104 char *devpath = NULL; local [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
H A D | ap_sbd.c | 813 char *devpath; local 839 if ((devpath = calloc(1, len)) == NULL) 842 (void) snprintf(devpath, len, "%s%s", DEVDIR, path); 844 devpath = NULL; 846 DBG("ap_cm_path(%d)=%s\n", seq, devpath ? devpath : ""); 848 return (devpath);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_utils.c | 783 char *root_path, *cp, *client_path, devpath[MAXPATHLEN]; local 901 (void) snprintf(devpath, 905 dev_list[0] = devpath; 1156 hba_dev_cmp(const char *hba, const char *devpath) argument 1164 (void) snprintf(l_dev, sizeof (l_dev), "%s", devpath); 1193 /* devpath must have '/' and 1 char in addition to hba path */
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_usb.c | 1013 char *devpath; local 1059 devpath = usb_get_devicepath(ap_id); 1060 if (devpath == NULL) { 1067 for (i = 0; i < 12 && (devpath == NULL); i++) { 1069 devpath = usb_get_devicepath(ap_id); 1072 if (devpath == NULL) { 1079 S_FREE(devpath); 1107 devpath = usb_get_devicepath(ap_id); 1108 if (devpath == NULL) { 1114 if ((rv = usb_rcm_offline(ap_id, errstring, devpath, flag 1725 char *devpath = NULL; local [all...] |
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 269 * devpath: Absolute path to /dev link 273 devfs_resolve_link(char *devpath, char **devfs_path) argument 285 linksize = readlink(devpath, contents, PATH_MAX); 304 /* relative path, prefix devpath */ 305 if ((ptr = strrchr(devpath, '/')) == NULL) { 310 (void) strcpy(stage_link, devpath);
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/tazmo/common/ |
H A D | tazmo.c | 1260 char devpath[MAXSTRLEN]; local 1275 modify_device_path(devpath_p, devpath); 1276 if (disk_present(devpath)) { 1326 * Returns 0 if the device at devpath is not *physically* present. If it is, 1332 disk_present(char *devpath) argument 1341 if ((search_file = open(devpath, O_RDONLY | O_NDELAY)) < 0)
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_utils.c | 1019 hba_dev_cmp(const char *hba, const char *devpath) argument 1027 (void) snprintf(l_dev, sizeof (l_dev), "%s", devpath); 1056 /* devpath must have '/' and 1 char in addition to hba path */
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/littleneck/psvcpolicy/ |
H A D | psvcpolicy.c | 549 char devpath[256]; local 652 strcpy(devpath, 655 strcpy(devpath, 658 dev_handle = devctl_device_acquire(devpath, 0);
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo_storage.c | 51 char *devpath; member in struct:devinfo_storage_minor 84 static gboolean dos_to_dev(char *path, char **devpath, int *partnum); 760 free (m->devpath); 770 char *devpath; local 779 devpath = (char *)calloc (1, pathlen); 780 snprintf(devpath, pathlen, "%s/%s", maindev_path, slice); 782 m->devpath = devpath; 787 if ((m->devpath == NULL) || (m->devlink == NULL)) { 810 char *devpath, *devlin local 1413 dos_to_dev(char *path, char **devpath, int *partnum) argument [all...] |
/illumos-gate/usr/src/cmd/stmsboot/ |
H A D | stmsboot_util.c | 114 static void vhci_to_phci(char *devpath, char *slice, int d_flag); 1316 vhci_to_phci(char *devpath, char *slice, int d_flag) argument 1331 ioc.client = devpath; 1342 ioc.client = devpath; 1384 if (strstr(devpath, "ssd") != NULL) {
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockcommon_subr.c | 2267 const char *devpath; local 2286 devpath = sp->sp_smod_info->smod_fallback_devpath_v4; 2289 devpath = sp->sp_smod_info->smod_fallback_devpath_v6; 2299 if (devpath == NULL || fbfunc == NULL) 2319 so->so_protocol, devpath, KM_SLEEP, &error);
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | wanboot.c | 961 * returns succesfully, it returns a devpath to the ramdisk and the 976 size_t length, char **devpath, off_t *offset, unsigned char *cdigest) 993 devpath); 1049 get_miniroot(char **devpath) argument 1116 mini_size, devpath, &offset, cdigest)) > 0) { 1218 process_wanbootfs(http_handle_t handle, char **devpath, argument 1324 devpath); 1382 char *devpath; local 1420 if ((ret = process_wanbootfs(handle, &devpath, 1445 if (determine_fstype_and_mountroot(devpath) ! 975 process_miniroot(http_handle_t handle, hash_type_t htype, size_t length, char **devpath, off_t *offset, unsigned char *cdigest) argument 1497 static char devpath[OBP_MAXPATHLEN]; local [all...] |