Searched defs:devpath (Results 1 - 25 of 100) sorted by relevance

1234

/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/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 DSun_sasScsiReportLUNs.c33 SendScsiReportLUNs(const char *devpath, void *responseBuffer, argument
57 status = send_uscsi_cmd(devpath, &ucmd_buf);
H A DSun_sasScsiInquiry.c33 SendScsiInquiry(const char *devpath, HBA_UINT8 cdb1, HBA_UINT8 cdb2, argument
59 status = send_uscsi_cmd(devpath, &ucmd_buf);
H A DSun_sasScsiReadCapacity.c33 SendScsiReadCapacity(const char *devpath, void *responseBuffer, argument
57 status = send_uscsi_cmd(devpath, &ucmd_buf);
H A DSun_sasSendSMPPassThru.c34 SendSMPPassThru(const char *devpath, void *reqframe, HBA_UINT32 *reqsize, argument
53 if ((fd = open(devpath, O_RDONLY | O_NONBLOCK)) == -1) {
55 "open devpath %s failed due to %s",
56 devpath, strerror(errno));
H A Dsun_sas.c381 send_uscsi_cmd(const char *devpath, struct uscsi_cmd *ucmd) argument
392 if ((fd = open(devpath, O_RDONLY | O_NDELAY)) == -1) {
394 "open devpath %s failed: %s", devpath, strerror(errno));
407 "ioctl send uscsi to devpath: %s failed: %s",
408 devpath, strerror(errno));
/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/boot/sys/boot/efi/boot1/
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/libdevinfo/
H A Ddevinfo_dim.c121 char *devpath = (char *)di_devlink_path(dl); local
123 if (devpath)
124 *devp = strdup(devpath);
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/
H A Dfx_epkt.c153 char *devpath, *rppath = NULL; local
245 devpath = fab_find_addr(hdl, nvl, epkt.addr);
246 if (devpath) {
247 rppath = fab_find_rppath_by_devpath(hdl, devpath);
248 fmd_hdl_strfree(hdl, devpath);
/illumos-gate/usr/src/cmd/devfsadm/
H A Daudio_link.c178 char devpath[PATH_MAX + 1]; local
203 (void) snprintf(devpath, sizeof (devpath), "%s:%s", tmp, mn);
279 (void) strlcpy(devpath, newpath, sizeof (devpath));
280 if (devfsadm_enumerate_int(devpath, 0, &buf, rules, 1)) {
/illumos-gate/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_acpi.c72 char *devpath; local
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dramdisk.c250 create_ramdisk(char *ramdisk_name, size_t size, char **devpath) argument
298 if (devpath != NULL) {
301 *devpath = strdup(tdevpath);
/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/lib/libdevid/
H A Ddeviceid.c177 char *devpath = (char *)di_devlink_path(dl); local
179 if (strncmp(devpath, cbip->cbi_search_path,
181 if (nmlist_add(cbip->cbi_nlhp, devpath) == NULL) {
/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/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/cmd/fcinfo/
H A DprintAttrs.c307 printLUNInfo(struct scsi_inquiry *inq, HBA_UINT32 scsiLUN, char *devpath) { argument
335 fprintf(stdout, gettext("\t OS Device Name: %s\n"), devpath);
/illumos-gate/usr/src/cmd/cdrw/
H A Dmain.c198 char *devpath; local
201 devpath = (char *)my_zalloc(PATH_MAX);
202 if (lookup_device(tgtdev, devpath)) {
203 target = get_device(tgtdev, devpath);
205 free(devpath);
/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/cmd/hal/utils/
H A Dfsutils.c38 dos_to_dev(char *path, char **devpath, int *num) argument
49 *devpath = strdup(path);
51 return (*devpath != NULL);
/illumos-gate/usr/src/lib/storage/libg_fc/common/hdrs/
H A Dg_state.h154 char *devpath; member in struct:mplist_struct
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dio.c732 * devpath: Valid block device path.
746 g_devid_get(char *devpath, ddi_devid_t *devid, di_node_t root, argument
756 if (devpath == NULL || devid == NULL || drvr_name == NULL) {
771 if (strstr(devpath, DEV_PREFIX)) {
772 strcat(rootpath, devpath + strlen(DEV_PREFIX) - 1);
773 if (strchr(devpath, ':')) {

Completed in 63 milliseconds

1234