Searched refs:devpath (Results 1 - 25 of 122) sorted by relevance

12345

/illumos-gate/usr/src/lib/sun_sas/common/
H A DSun_sasRefreshAdapterConfiguration.c39 char *devpath, fulldevpath[MAXPATHLEN]; local
51 if ((devpath = di_devfs_path(node)) == NULL) {
56 devpath);
58 if ((strstr(fulldevpath, wa->devpath)) != NULL) {
61 di_devfs_path_free(devpath);
64 di_devfs_path_free(devpath);
117 wa.devpath = hba_ptr->device_path;
H A DSun_sasRefreshInformation.c39 char *devpath, fulldevpath[MAXPATHLEN]; local
51 if ((devpath = di_devfs_path(node)) == NULL) {
56 devpath);
58 if ((strstr(fulldevpath, wa->devpath)) != NULL) {
66 di_devfs_path_free(devpath);
69 di_devfs_path_free(devpath);
127 wa.devpath = hba_ptr->device_path;
H A Ddevtree_device_disco.c42 get_minor(char *devpath, char *minor) argument
48 if ((strstr(devpath, "/st@")) || (strstr(devpath, "/tape@"))) {
50 } else if (strstr(devpath, "/smp@")) {
52 } else if ((strstr(devpath, "/ssd@")) || (strstr(devpath, "/sd@")) ||
53 (strstr(devpath, "/disk@"))) {
55 } else if ((strstr(devpath, "/ses@")) || (strstr(devpath,
58 devpath, "
228 char *devpath, link[MAXNAMELEN]; local
[all...]
/illumos-gate/usr/src/boot/sys/boot/efi/boot1/
H A Dboot1.c94 nodes_match(EFI_DEVICE_PATH *imgpath, EFI_DEVICE_PATH *devpath) argument
98 if (imgpath == NULL || imgpath->Type != devpath->Type ||
99 imgpath->SubType != devpath->SubType)
103 if (len != DevicePathNodeLength(devpath))
106 return (memcmp(imgpath, devpath, (size_t)len) == 0);
111 * in imgpath and devpath match up to their respect occurances of a media
115 device_paths_match(EFI_DEVICE_PATH *imgpath, EFI_DEVICE_PATH *devpath) argument
121 while (!IsDevicePathEnd(imgpath) && !IsDevicePathEnd(devpath)) {
123 IsDevicePathType(devpath, MEDIA_DEVICE_PATH))
126 if (!nodes_match(imgpath, devpath))
140 devpath_last(EFI_DEVICE_PATH *devpath) argument
157 devpath_node_str(char *buf, size_t size, EFI_DEVICE_PATH *devpath) argument
281 devpath_strlcat(char *buf, size_t size, EFI_DEVICE_PATH *devpath) argument
312 devpath_str(EFI_DEVICE_PATH *devpath) argument
472 EFI_DEVICE_PATH *devpath; local
[all...]
H A Dboot_module.h50 EFI_DEVICE_PATH *devpath; member in struct:dev_info
112 extern int devpath_strlcat(char *buf, size_t size, EFI_DEVICE_PATH *devpath);
113 extern char *devpath_str(EFI_DEVICE_PATH *devpath);
/illumos-gate/usr/src/lib/libsocket/socket/
H A Dsocket.c109 char *devpath; local
127 &devpath, &prototype) == -1) {
131 fd = _so_socket(family, type, protocol, devpath, version);
132 free(devpath);
/illumos-gate/usr/src/uts/common/io/scsi/impl/
H A Dscsi_fm.c37 const char *devpath, const char *minor_name, const char *devid,
95 char *devpath, const char *error_class, uint64_t ena,
123 * If path_instance is zero then use the devpath provided by the
129 devpath = mdi_pi_pathname_by_instance(path_instance);
149 fm_dev_ereport_postv(dip, eqdip, devpath, minor_name, devid, tpl0,
94 scsi_fm_ereport_post(struct scsi_device *sd, int path_instance, char *devpath, const char *error_class, uint64_t ena, char *devid, char *tpl0, int sflag, nvlist_t *pl, ...) argument
/illumos-gate/usr/src/uts/common/sys/scsi/
H A Dscsi_fm.h42 char *devpath, const char *error_class, uint64_t ena,
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/
H A Dsd.c63 #define FW_SD_FREE_DEVPATH(devpath) { \
64 di_devfs_path_free((devpath)); \
66 #define FW_SD_FREE_DEVICELIST(thisdev, devpath) { \
68 FW_SD_FREE_DEVPATH((devpath)) \
70 #define FW_SD_FREE_DRV_NAME(thisdev, devpath) { \
72 FW_SD_FREE_DEVICELIST((thisdev), (devpath)) \
74 #define FW_SD_FREE_CLS_NAME(thisdev, devpath) { \
76 FW_SD_FREE_DRV_NAME((thisdev), (devpath)) \
78 #define FW_SD_FREE_ACC_NAME(thisdev, devpath) { \
80 FW_SD_FREE_CLS_NAME(thisdev, devpath) \
253 char *devpath = NULL; local
[all...]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Ddev.c136 char *devpath = NULL; local
156 err = nvlist_lookup_string(nvl, FM_FMRI_DEV_PATH, &devpath);
157 if (err != 0 || devpath == NULL)
180 * device-path part; the devpath should always start with a /
192 topo_fmristr_build(&size, buf, buflen, devpath,
239 char *devpath; local
257 * an empty devpath string.
272 * If not a colon then it must be the / that begins the devpath.
278 * Look ahead to the "/" that starts the devpath. If not
281 eos = devpath
378 char *devpath = NULL; local
458 char *devpath = NULL; local
539 char *devpath = NULL; local
586 char *devpath = NULL; local
[all...]
/illumos-gate/usr/src/cmd/hal/utils/
H A Dfsutils.h18 boolean_t dos_to_dev(char *path, char **devpath, int *num);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_fru.c108 char *devpath, *frustr; local
120 FM_FMRI_AUTH_CHASSIS, &devpath, &err) == 0)
121 (void) strlcpy(hdl->libzfs_chassis_id, devpath,
134 if (_topo_prop_get_string(tn, "io", "devfs-path", &devpath, &err) != 0)
137 if (libzfs_fru_lookup(hdl, devpath) != NULL) {
138 _topo_hdl_strfree(thp, devpath);
143 _topo_hdl_strfree(thp, devpath);
152 _topo_hdl_strfree(thp, devpath);
162 _topo_hdl_strfree(thp, devpath);
167 if ((frup->zf_device = strdup(devpath))
307 libzfs_fru_lookup(libzfs_handle_t *hdl, const char *devpath) argument
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dretire_store.c318 e_ddi_retire_persist(char *devpath) argument
325 STORE_DBG((CE_NOTE, "e_ddi_retire_persist: entered: %s", devpath));
328 new_rsp->rst_devpath = new_path = i_ddi_strdup(devpath, KM_SLEEP);
339 if (strcmp(devpath, rsp->rst_devpath) == 0) {
347 ": %s", devpath));
362 STORE_DBG((CE_NOTE, "store: New, added to list, dirty: %s", devpath));
368 e_ddi_retire_unpersist(char *devpath) argument
375 STORE_DBG((CE_NOTE, "e_ddi_retire_unpersist: entered: %s", devpath));
382 if (strcmp(devpath, rsp->rst_devpath) != 0)
389 devpath));
404 e_ddi_device_retired(char *devpath) argument
[all...]
/illumos-gate/usr/src/cmd/fstyp/
H A Dfstyp.c53 static boolean_t dos_to_dev(char *path, char **devpath, int *num);
74 char *devpath; local
117 if (!(is_dos = dos_to_dev(argv[0], &devpath, &dos_num))) {
118 devpath = argv[0];
120 if ((fd = open(devpath, O_RDONLY)) < 0) {
172 if (devpath != argv[0]) {
173 free(devpath);
257 dos_to_dev(char *path, char **devpath, int *num) argument
268 *devpath = getfullrawname(path);
270 if (*devpath !
[all...]
/illumos-gate/usr/src/cmd/stat/common/
H A Ddsr.c125 char *devpath; local
185 devpath = di_dim_path_dev(di_dim, driver, instance, part);
189 if ((devpath = di_dim_path_dev(di_dim,
194 if (devpath == NULL)
198 * At this point we have a devpath result. Return the information about
201 if (devpathp) /* devpath */
202 *devpathp = safe_strdup(devpath);
204 if (adevpathp) { /* abbreviated devpath */
210 * For example for devpath of "/dev/dsk/c0t0d0s0" the
211 * abbreviated devpath woul
351 char *devpath = NULL; local
[all...]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dfindevs.c128 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...]
H A Dslice.c121 char devpath[MAXPATHLEN]; local
134 dsk2rdsk(dp->name, devpath, sizeof (devpath));
135 fd = open(devpath, O_RDONLY|O_NDELAY);
150 * Look for the slice by the slice devpath.
225 char devpath[MAXPATHLEN]; local
229 dsk2rdsk(dp->name, devpath, sizeof (devpath));
230 fd = open(devpath, O_RDONLY|O_NDELAY);
248 slice_rdsk2dsk(sp->devpath, localpat
672 char devpath[MAXPATHLEN]; local
754 char devpath[MAXPATHLEN]; local
[all...]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_dim.c121 char *devpath = (char *)di_devlink_path(dl); local
123 if (devpath)
124 *devp = strdup(devpath);
H A Ddevinfo_retire.c344 * subtree rooted at devpath, allowing each node the
672 di_retire_device(char *devpath, di_retire_t *dp, int flags) argument
687 if (devpath == NULL || devpath[0] == '\0') {
692 if (devpath[0] != '/' || strlen(devpath) >= PATH_MAX ||
693 strncmp(devpath, "/devices/", strlen("/devices/")) == 0 ||
694 strstr(devpath, "../devices/") || strrchr(devpath, ':')) {
695 dp->rt_debug(dp->rt_hdl, "[ERROR]: invalid devpath
834 di_unretire_device(char *devpath, di_retire_t *dp) argument
[all...]
/illumos-gate/usr/src/lib/libwanboot/common/
H A Dbootinfo_aux.c380 char *devpath; local
398 if ((devpath = get_bootpath()) == NULL ||
399 (node = path2node(devpath)) == DI_NODE_NIL ||
405 free(devpath);
406 if ((devpath = get_netalias()) == NULL ||
407 (node = path2node(devpath)) == DI_NODE_NIL ||
431 (node = path2node(devpath)) == DI_NODE_NIL) {
451 free(devpath);
/illumos-gate/usr/src/cmd/lvm/etc/
H A Dsvm.save.sh37 cp ${FLASH_ROOT}/etc/lvm/devpath ${SAVE_DIR}
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_hba_fru.c400 "device path: %s\n", ha->devpath);
517 * the same HBA, the devpath for each instance is parsed
520 * then assigned unique port_indexs based on the devpath.
567 * devpath of the current instance.
592 if (ha->devpath == NULL) {
596 dev_off = (int32_t)(strlen(ha->devpath) - 1);
600 while ((dev_off >= 0) && (ha->devpath[dev_off] != '@')) {
602 if (ha->devpath[dev_off] == ',') {
611 ha->devpath);
617 *basedev_len = (uint32_t)strlen(ha->devpath);
[all...]
/illumos-gate/usr/src/cmd/luxadm/
H A Dfcalupdate.c582 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/lib/cfgadm_plugins/sata/common/
H A Dcfga_sata.c575 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/psm/stand/boot/sparc/common/
H A Dboot_plat.h56 extern boolean_t is_netdev(char *devpath);

Completed in 106 milliseconds

12345