Lines Matching defs:physpath

1484 	char physpath[MAXPATHLEN];
1504 if ((linksize = readlink(buf, physpath,
1506 physpath[linksize] = '\0';
1507 if ((abspath = strstr(physpath,
1514 (void) strlcpy(physpath, vfsent.vfs_special,
1516 abspath = physpath;
1551 * Get the /dev name in the install environment corresponding to physpath.
1553 * physpath /devices path in the install environment without the /devices
1561 get_install_devlink(char *physpath, char *buf, size_t bufsz)
1569 logdmsg(("get_install_devlink: physpath = %s\n", physpath));
1586 if (di_devlink_walk(devlink_hdl, NULL, physpath, DI_PRIMARY_LINK,
1612 * Get the /dev name in the target environment corresponding to physpath.
1615 * physpath /devices path in the target environment without the /devices
1623 get_target_devlink(char *rootdir, char *physpath, char *buf, size_t bufsz)
1633 logdmsg(("get_target_devlink: rootdir = %s, physpath = %s\n",
1634 rootdir, physpath));
1636 if ((p = strrchr(physpath, '/')) == NULL)
1661 physpath) == 0) {
1676 * Convert device name to physpath.
1680 * physpath caller supplied buffer where the /devices path will be placed
1682 * physpathlen length of the physpath buffer
1687 devname2physpath(char *rootdir, char *devname, char *physpath, int physpathlen)
1716 (void) strlcpy(physpath, p + sizeof (SLASH_DEVICES) - 1, physpathlen);
1717 logdmsg(("devname2physpath: physpath = %s\n", physpath));
1737 char physpath[MAXPATHLEN];
1748 if (devname2physpath((char *)rootdir, (char *)devname, physpath,
1753 if (client_name_type(physpath) == CLIENT_TYPE_PHCI) {
1758 if ((minor = strrchr(physpath, ':')) != NULL) {
1763 if ((mapped_node_path = phci_to_vhci(physpath)) != NULL) {
1765 (void) snprintf(physpath, MAXPATHLEN,
1768 (void) strlcpy(physpath, mapped_node_path,
1771 logdmsg(("devfs_target2install: mapped physpath: %s\n",
1772 physpath));
1779 return (get_install_devlink(physpath, buf, bufsz));
1798 char physpath[MAXPATHLEN];
1809 if (devname2physpath("", (char *)devname, physpath, MAXPATHLEN) != 0)
1813 if (client_name_type(physpath) == CLIENT_TYPE_VHCI) {
1820 if ((minor = strrchr(physpath, ':')) != NULL) {
1826 if ((pathlist = vhci_to_phci(physpath, &npaths)) == NULL)
1829 if ((npaths = build_pathlist((char *)rootdir, physpath,
1851 (void) snprintf(physpath, MAXPATHLEN,
1854 (void) strlcpy(physpath, pathlist[j], MAXPATHLEN);
1859 return (get_target_devlink((char *)rootdir, physpath, buf, bufsz));