Displaying 1 result from an estimated 1 matches for "scsi_tgt_cmd".
2007 Jan 02
0
[PATCH 1/4] add scsi-target and IO_CMD_EPOLL_WAIT patches
...v));
++ ev->hdr.type = type;
++ mb();
++ ev->hdr.status = 1;
++
++ flush_dcache_page(virt_to_page(ev));
++
++ wake_up_interruptible(&tgt_poll_wait);
++
++ return 0;
++}
++
++int scsi_tgt_uspace_send_cmd(struct scsi_cmnd *cmd, struct scsi_lun *lun, u64 tag)
++{
++ struct Scsi_Host *shost = scsi_tgt_cmd_to_host(cmd);
++ struct tgt_event ev;
++ int err;
++
++ memset(&ev, 0, sizeof(ev));
++ ev.p.cmd_req.host_no = shost->host_no;
++ ev.p.cmd_req.data_len = cmd->request_bufflen;
++ memcpy(ev.p.cmd_req.scb, cmd->cmnd, sizeof(ev.p.cmd_req.scb));
++ memcpy(ev.p.cmd_req.lun, lun, sizeof(ev.p....