Searched refs:sg_fd (Results 1 – 1 of 1) sorted by relevance
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
D | scsimain.c | 436 int sg3_inq(int sg_fd, unsigned char *inqBuff, int do_extra); 641 int sg_fd, res, k, f; in run_sg_scan_tests() local 670 ++k, res = (sg_fd >= 0) ? close(sg_fd) : 0) { in run_sg_scan_tests() 679 sg_fd = open(fname, flags | O_NONBLOCK); in run_sg_scan_tests() 680 if (sg_fd < 0) { in run_sg_scan_tests() 701 res = ioctl(sg_fd, SCSI_IOCTL_GET_IDLUN, &my_idlun); in run_sg_scan_tests() 710 res = ioctl(sg_fd, SCSI_IOCTL_GET_BUS_NUMBER, &host_no); in run_sg_scan_tests() 719 res = ioctl(sg_fd, SG_EMULATED_HOST, &emul); in run_sg_scan_tests() 743 res = ioctl(sg_fd, SG_GET_SCSI_ID, &m_id); in run_sg_scan_tests() 765 if ((ioctl(sg_fd, SG_GET_VERSION_NUM, &f) >= 0) && (f >= 30000)) { in run_sg_scan_tests() [all …]
|