Searched refs:fcp_fd (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | map.c | 1345 int err, fcp_fd; in g_get_inq_dtype() local 1389 if ((fcp_fd = g_object_open(FCP_PATH, O_RDONLY)) == -1) { in g_get_inq_dtype() 1401 if (err = g_issue_fcp_ioctl(fcp_fd, &fcp_data, 0)) { in g_get_inq_dtype() 1403 close(fcp_fd); in g_get_inq_dtype() 1409 close(fcp_fd); in g_get_inq_dtype() 1433 int err, fcp_fd; in get_fca_inq_dtype() local 1452 if ((fcp_fd = g_object_open(FCP_PATH, O_RDONLY)) == -1) { in get_fca_inq_dtype() 1464 if (err = g_issue_fcp_ioctl(fcp_fd, &fcp_data, 0)) { in get_fca_inq_dtype() 1466 close(fcp_fd); in get_fca_inq_dtype() 1472 close(fcp_fd); in get_fca_inq_dtype() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_list.c | 880 int fcp_fd, retry, rv; in issue_fcp_scsi_cmd() local 888 fcp_fd = open(FCP_PATH, O_RDONLY | O_NDELAY); in issue_fcp_scsi_cmd() 890 while (fcp_fd < 0 && retry++ < OPEN_RETRY_COUNT && ( in issue_fcp_scsi_cmd() 893 fcp_fd = open(FCP_PATH, O_RDONLY|O_NDELAY); in issue_fcp_scsi_cmd() 895 if (fcp_fd < 0) { in issue_fcp_scsi_cmd() 900 rv = ioctl(fcp_fd, FCP_TGT_SEND_SCSI, fscsi); in issue_fcp_scsi_cmd() 908 rv = ioctl(fcp_fd, FCP_TGT_SEND_SCSI, fscsi); in issue_fcp_scsi_cmd() 910 close(fcp_fd); in issue_fcp_scsi_cmd()
|