Searched defs:physpath (Results 1 - 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_fs.c58 slice_match(const char *physpath, int slice) argument
66 return ((pos = strrchr(physpath, slice)) == NULL ||
91 get_sol_prtnum(const char *physpath) argument
105 (void) snprintf(rdev, sizeof (rdev), "/devices%s,raw", physpath);
172 * Get physpath, topfs and bootfs for ZFS root dataset.
207 * On entry physpath parameter supposed to contain:
213 get_one_physpath(char *physpath, uint_t prtnum, uint_t slcnum) argument
219 (void) strtok(physpath, " ");
223 if ((tmp = strdup(physpath)) == NULL)
230 (void) strcpy(physpath, to
[all...]
/illumos-gate/usr/src/lib/storage/liba5k/common/
H A Dlhot.c871 char *physpath; local
878 if (!l_convert_name(box_name, &physpath, &p_pathstruct, 0)) {
879 if (!g_get_inquiry(physpath, &inq)) {
884 free(physpath);
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_cvt.c458 char *physpath, *drv; local
479 physpath = di_devfs_path(node);
480 if (drv == NULL || inst == -1 || physpath == NULL) {
485 devlen = strlen(DEVICES_DIR) + strlen(physpath) + 1;
499 (void) snprintf(devpath, devlen, "%s%s", DEVICES_DIR, physpath);
521 if (physpath != NULL) di_devfs_path_free(physpath);
610 const char *physpath,
629 path = (char *)physpath;
632 (void) snprintf(pathbuf, MAXPATHLEN, "%s:%s", physpath,
608 make_dyncomp( di_node_t node, const char *physpath, char **dyncompp, int *l_errnop) argument
[all...]
H A Dcfga_utils.c408 const char *physpath,
423 if ((root_path = strdup(physpath)) == NULL) {
946 const char *physpath,
994 if ((path = strdup(physpath)) == NULL) {
407 walk_tree( const char *physpath, void *arg, uint_t init_flags, walkarg_t *up, scfga_cmd_t cmd, int *l_errnop) argument
945 devctl_cmd( const char *physpath, scfga_cmd_t cmd, uint_t *statep, int *l_errnop) argument
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/envd/
H A Dpiclenvd.c693 char physpath[PATH_MAX]; local
699 pmstate.physpath = physpath;
700 pmstate.size = sizeof (physpath);
733 pmstate.new_level, pmstate.physpath);
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/
H A Dzfs_mod.c156 char *physpath = NULL; local
165 (void) nvlist_lookup_string(vdev, ZPOOL_CONFIG_PHYS_PATH, &physpath);
242 * path/physpath/wholedisk to keep it simple.
254 (physpath != NULL && nvlist_add_string(newvd,
255 ZPOOL_CONFIG_PHYS_PATH, physpath) != 0) ||
706 syseventd_print(9, "zfs_deliver_event: no physpath\n");
/illumos-gate/usr/src/cmd/devfsadm/
H A Dcfg_link.c324 char *physpath, *cp; local
327 if ((physpath = strdup(path)) == NULL) {
332 * physpath must always have a minor name component
334 if ((cp = strrchr(physpath, ':')) == NULL) {
335 free(physpath);
345 return (physpath);
356 if ((cp = strrchr(physpath, '/')) == NULL || (cp == physpath)) {
357 free(physpath);
371 if ((cp = strrchr(physpath, '/')) !
969 pci_cfg_rm_invalid_links(char *physpath, char *valid) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_disk.c602 char *physpath, *minorname; local
604 physpath = kmem_alloc(MAXPATHLEN, KM_SLEEP);
606 if (ddi_dev_pathname(dev, otyp, physpath) == 0 &&
609 strcmp(vd->vdev_physpath, physpath) != 0)) {
612 (void) strlcat(physpath, ":", MAXPATHLEN);
613 (void) strlcat(physpath, minorname, MAXPATHLEN);
614 vd->vdev_physpath = spa_strdup(physpath);
618 kmem_free(physpath, MAXPATHLEN);
H A Dzvol.c820 char *physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP); local
822 (void) snprintf(physpath, MAXPATHLEN, "%s%u", ZVOL_PSEUDO_DEV,
826 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0);
832 kmem_free(physpath, MAXPATHLEN);
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_utils.c494 const char *physpath,
511 if ((root_path = strdup(physpath)) == NULL) {
815 const char *physpath,
863 if ((path = strdup(physpath)) == NULL) {
493 walk_tree( const char *physpath, void *arg, uint_t init_flags, walkarg_t *up, fpcfga_cmd_t cmd, int *l_errnop) argument
814 devctl_cmd( const char *physpath, fpcfga_cmd_t cmd, uint_t *statep, int *l_errnop) argument
/illumos-gate/usr/src/cmd/luxadm/
H A Dhotplug.c504 char *physpath; local
733 if ((err = l_convert_name(ses_path, &physpath,
735 free(physpath);
740 if ((err = g_get_inquiry(physpath, &inq)) != 0) {
741 free(physpath);
/illumos-gate/usr/src/uts/common/sys/
H A Dpm.h135 char *physpath; /* physical path of device to configure */ member in struct:pm_req
157 #define pmreq_keeper physpath /* keeper in the physpath field */
177 caddr_t physpath; /* Device which has changed state */ member in struct:pm_state_change
189 size_t size; /* size of buffer physpath points to */
210 caddr32_t physpath; /* physical path of device to configure */ member in struct:pm_req32
219 caddr32_t physpath; /* Device which has changed state */ member in struct:pm_state_change32
231 size32_t size; /* size of buffer physpath points to */
/illumos-gate/usr/src/cmd/halt/
H A Dhalt.c732 char physpath[MAXPATHLEN]; local
743 bzero(physpath, sizeof (physpath));
791 if (zpool_get_physpath(zpoolp, physpath, sizeof (physpath)) != 0) {
798 * For the mirror physpath would contain the list of all
801 (void) strtok(physpath, " ");
802 if (snprintf(bootfs_arg, BOOTARGS_MAX, fmt, bootfs, physpath) >=
830 char physpath[MAXPATHLEN]; local
834 if ((sz = resolvepath(arg, physpath, sizeo
[all...]
/illumos-gate/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c56 #define NVL_PHYSPATH "nvl-physpath"
106 static void report_map(char *argdev, int physpath);
653 * Example output (-p maps to physpath=BOOT)
668 report_map(char *argdev, int physpath) argument
691 slice = strrchr(argdev, (physpath == NONBOOT) ? 's' : ':');
717 if ((physpath != BOOT) &&
718 (physpath != BOOT_PATH)) {
741 if ((physpath != BOOT) &&
742 (physpath != BOOT_PATH)) {
775 if (physpath
[all...]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevfsmap.c1484 char physpath[MAXPATHLEN]; local
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) argument
1569 logdmsg(("get_install_devlink: physpath
1623 get_target_devlink(char *rootdir, char *physpath, char *buf, size_t bufsz) argument
1687 devname2physpath(char *rootdir, char *devname, char *physpath, int physpathlen) argument
1737 char physpath[MAXPATHLEN]; local
1798 char physpath[MAXPATHLEN]; local
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/chicago/envd/
H A Dpiclenvd.c1126 char physpath[PATH_MAX]; local
1131 pmstate.physpath = physpath;
1132 pmstate.size = sizeof (physpath);
1165 pmstate.physpath);
1614 pmstate.physpath = diskp->physpath;
1615 pmstate.size = strlen(diskp->physpath);
H A Denvd.h461 char *physpath; /* used to be probe for IDLW TIME */ member in struct:env_disk
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/enchilada/envd/
H A Denvd.h404 char *physpath; /* used to be probe for IDLW TIME */ member in struct:env_disk
H A Dpiclenvd.c1453 char physpath[PATH_MAX]; local
1456 pmstate.physpath = physpath;
1457 pmstate.size = sizeof (physpath);
1489 pmstate.physpath);
2097 pmstate.physpath = diskp->physpath;
2098 pmstate.size = strlen(diskp->physpath);
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/
H A Dpiclenvd.c811 char *p, physpath[PATH_MAX]; local
820 (void) strlcpy(physpath, path, sizeof (physpath));
821 p = strrchr(physpath, ':');
824 if ((root_node = di_init(physpath, DINFOMINOR)) != DI_NODE_NIL) {
1554 pmreq.physpath = pmdevp->pmdev_name;
1581 char *p, physpath[PATH_MAX]; local
1590 (void) strcpy(physpath, sensorp->devfs_path);
1591 p = strrchr(physpath, ':');
1594 if ((root_node = di_init(physpath, DINFOMINO
1717 char physpath[PATH_MAX]; local
2224 char physpath[PATH_MAX]; local
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/taco/envd/
H A Dpiclenvd.c1085 char physpath[PATH_MAX]; local
1088 pmstate.physpath = physpath;
1089 pmstate.size = sizeof (physpath);
1121 pmstate.physpath);
/illumos-gate/usr/src/lib/storage/libg_fc/common/hdrs/
H A Dgfc.h314 char *physpath[MAX_HBA_PORT]; member in struct:portlist
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_subr.c1776 char *physpath = NULL; local
1783 physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
1784 rv = callback(ddv, nm, (void *)&physpath, kcred, NULL,
1787 kmem_free(physpath, MAXPATHLEN);
1792 vap->va_size = strlen(physpath);
1798 (void *)physpath, cred, SDEV_READY);
1799 kmem_free(physpath, MAXPATHLEN);
/illumos-gate/usr/src/uts/common/io/
H A Dpm.c751 kmem_free(p->physpath, p->size);
1007 req32.physpath, who, MAXNAMELEN, &wholen);
1014 req.physpath = who;
1015 PMD(PMD_IOCTL, ("ioctl: %s: physpath=%s\n",
1016 cmdstr, req.physpath))
1028 pm_name_to_dip(req.physpath, 1))) {
1031 cmdstr, req.physpath))
1122 ret = copyinstr((char *)req.physpath, who,
1130 req.physpath = who;
1131 PMD(PMD_IOCTL, ("ioctl: %s: physpath
2284 caddr_t physpath; local
2427 caddr_t physpath; local
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/shp/common/
H A Dshp.c287 physpath2node(const char *physpath, char **errstring, hp_node_t *nodep) argument
298 if ((rpath = malloc(strlen(physpath) + 1)) == NULL)
301 (void) strcpy(rpath, physpath);

Completed in 1062 milliseconds

12