scsimain.c | 436 int sg3_inq(int sg_fd, unsigned char *inqBuff, int do_extra); 641 int sg_fd, res, k, f; local 670 ++k, res = (sg_fd >= 0) ? close(sg_fd) : 0) { 679 sg_fd = open(fname, flags | O_NONBLOCK); 680 if (sg_fd < 0) { 701 res = ioctl(sg_fd, SCSI_IOCTL_GET_IDLUN, &my_idlun); 710 res = ioctl(sg_fd, SCSI_IOCTL_GET_BUS_NUMBER, &host_no); 719 res = ioctl(sg_fd, SG_EMULATED_HOST, &emul); 743 res = ioctl(sg_fd, SG_GET_SCSI_ID, &m_id) 1479 int sg_fd, k, pg_len; local 1672 int sg_fd; local 2725 int sg_fd, k, j, num, len, act_len; local 3083 int sg_fd, res, k; local 3269 int k, res, ind, sg_fd = 0; local 3661 int sg_fd, k, num, len, md_len, bd_len, longlba, page_num; local 3835 int sg_fd, res; local 4150 int sg_fd, k, res; local 4199 int sg_fd, res, k; local 4427 int sg_fd, k, num, rsp_len; local 4906 int sg_fd; local 4953 int sg_fd, k; local [all...] |