| /NextBSD/cddl/contrib/opensolaris/lib/libzfs/common/ |
| HD | libzfs_fru.c | 108 char *devpath, *frustr; in libzfs_fru_gather() local 120 FM_FMRI_AUTH_CHASSIS, &devpath, &err) == 0) in libzfs_fru_gather() 121 (void) strlcpy(hdl->libzfs_chassis_id, devpath, in libzfs_fru_gather() 134 if (_topo_prop_get_string(tn, "io", "devfs-path", &devpath, &err) != 0) in libzfs_fru_gather() 137 if (libzfs_fru_lookup(hdl, devpath) != NULL) { in libzfs_fru_gather() 138 _topo_hdl_strfree(thp, devpath); in libzfs_fru_gather() 143 _topo_hdl_strfree(thp, devpath); in libzfs_fru_gather() 152 _topo_hdl_strfree(thp, devpath); in libzfs_fru_gather() 162 _topo_hdl_strfree(thp, devpath); in libzfs_fru_gather() 167 if ((frup->zf_device = strdup(devpath)) == NULL || in libzfs_fru_gather() [all …]
|
| /NextBSD/lib/libgeom/ |
| HD | geom_util.c | 276 g_device_path_open(const char *devpath, int *fdp, int dowrite) in g_device_path_open() argument 286 fd = open(devpath, dowrite ? O_RDWR : O_RDONLY); in g_device_path_open() 298 if ((path = strdup(devpath)) == NULL) { in g_device_path_open() 310 if (*devpath != '/') { in g_device_path_open() 311 asprintf(&path, "%s%s", _PATH_DEV, devpath); in g_device_path_open() 339 g_device_path(const char *devpath) in g_device_path() argument 341 return (g_device_path_open(devpath, NULL, 0)); in g_device_path()
|
| /NextBSD/usr.sbin/jail/ |
| HD | command.c | 270 char *acs, *cs, *comcs, *devpath; in run_command() local 487 devpath = alloca(strlen(path) + 5); in run_command() 488 sprintf(devpath, "%s/dev", path); in run_command() 489 if (check_path(j, "mount.devfs", devpath, 0, in run_command() 494 argv[1] = devpath; in run_command() 506 argv[5] = devpath; in run_command() 518 devpath = alloca(strlen(path) + 8); in run_command() 519 sprintf(devpath, "%s/dev/fd", path); in run_command() 520 if (check_path(j, "mount.fdescfs", devpath, 0, in run_command() 525 argv[1] = devpath; in run_command() [all …]
|
| /NextBSD/sys/boot/efi/boot1/ |
| HD | boot1.c | 61 EFI_DEVICE_PATH *devpath; in efi_main() local 106 &DevicePathGUID, (void **)&devpath); in efi_main() 110 while (!IsDevicePathEnd(NextDevicePathNode(devpath))) in efi_main() 111 devpath = NextDevicePathNode(devpath); in efi_main() 121 if (domount(devpath, blkio, 1) >= 0) in efi_main()
|
| /NextBSD/sys/boot/powerpc/kboot/ |
| HD | main.c | 60 const char *devpath, *filepath; in kboot_getdev() local 65 devpath = devspec; in kboot_getdev() 68 devpath = getenv("currdev"); in kboot_getdev() 73 if (strncmp(dv->dv_name, devpath, strlen(dv->dv_name)) == 0) in kboot_getdev() 88 desc->d_opendata = strdup(devpath); in kboot_getdev()
|
| /NextBSD/sys/xen/xenbus/ |
| HD | xenbusb.c | 645 char *devpath; in xenbusb_add_device() local 653 devpath = sbuf_data(devpath_sbuf); in xenbusb_add_device() 658 if (xs_exists(XST_NIL, devpath, "") != 0) { in xenbusb_add_device() 663 child = xenbusb_device_exists(dev, devpath); in xenbusb_add_device() 672 state = xenbus_read_driver_state(devpath); in xenbusb_add_device() 680 "State %d\n", devpath, state); in xenbusb_add_device() 687 ivars->xd_node = strdup(devpath, M_XENBUS); in xenbusb_add_device() 688 ivars->xd_node_len = strlen(devpath); in xenbusb_add_device() 695 devpath); in xenbusb_add_device()
|
| /NextBSD/contrib/ofed/libibverbs/src/ |
| HD | device.c | 127 char *devpath; in __ibv_open_device() local 131 if (asprintf(&devpath, "/dev/%s", device->dev_name) < 0) in __ibv_open_device() 138 cmd_fd = open(devpath, O_RDWR); in __ibv_open_device() 139 free(devpath); in __ibv_open_device()
|
| /NextBSD/sys/boot/efi/libefi/ |
| HD | efipart.c | 66 EFI_DEVICE_PATH *devpath, *devpathcpy, *tmpdevpath, *node; in efipart_init() local 98 (void **)&devpath); in efipart_init() 103 node = devpath; in efipart_init() 128 memcpy(devpathcpy, devpath, devpathlen); in efipart_init()
|
| /NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| HD | vdev_disk.c | 871 vdev_disk_read_rootlabel(char *devpath, char *devid, nvlist_t **config) in vdev_disk_read_rootlabel() argument 892 if (error && (error = ldi_open_by_name(devpath, FREAD, kcred, &vd_lh, in vdev_disk_read_rootlabel()
|
| HD | spa.c | 3822 spa_generate_rootconf(char *devpath, char *devid, uint64_t *guid) in spa_generate_rootconf() argument 3828 if (vdev_disk_read_rootlabel(devpath, devid, &config) != 0) in spa_generate_rootconf() 3906 spa_import_rootpool(char *devpath, char *devid) in spa_import_rootpool() argument 3918 config = spa_generate_rootconf(devpath, devid, &guid); in spa_import_rootpool() 3921 if (strstr(devpath, "/iscsi/ssd") != NULL) { in spa_import_rootpool() 3923 get_iscsi_bootpath_phy(devpath); in spa_import_rootpool() 3924 config = spa_generate_rootconf(devpath, devid, &guid); in spa_import_rootpool() 3930 devpath); in spa_import_rootpool()
|
| /NextBSD/sys/cddl/contrib/opensolaris/uts/common/os/ |
| HD | fm.c | 967 const char *devpath, const char *devid, const char *tpl0) in fm_fmri_dev_set() argument 984 err |= nvlist_add_string(fmri_dev, FM_FMRI_DEV_PATH, devpath); in fm_fmri_dev_set()
|
| /NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
| HD | spa.h | 629 extern int spa_import_rootpool(char *devpath, char *devid);
|