![]() |
| | #1 |
| Registered User Join Date: Aug 2008
Posts: 22
| SCSI programming I am trying to communicate with a tape drive using ioctl and SCSI_IOCTL_SEND_COMMAND as ioctl(fd, SCSI_IOCTL_SEND_COMMAND, buffer); I read that the buffer should be of the form : Code: struct sdata {
unsigned int inlen; [i] Length of data written to device
unsigned int outlen; [i] Length of data read from device
unsigned char cmd[x]; [i] SCSI command (6 <= x <= 16)
[o] Data read from device starts here
[o] On error, sense buffer starts here
unsigned char wdata[y]; [i] Data written to device starts here
};
Thanks |
| rak1986 is offline | |
| | #2 |
| Registered User Join Date: Aug 2008
Posts: 22
| HI guys, I need some help here. Is it possible to write a generic function to support all SCSI commands? Thanks.... |
| rak1986 is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linux SCSI read/write | galapogos | Linux Programming | 1 | 12-09-2008 10:36 AM |
| Detect SCSI Hard Drive Serial Number | mercury529 | Windows Programming | 3 | 10-17-2006 06:23 PM |
| Hp C5110a Scsi | GanglyLamb | Tech Board | 5 | 09-25-2004 07:17 AM |
| SCSI drivers... device conflict... no CD drives | CodeMonkey | Tech Board | 2 | 09-10-2003 06:48 AM |
| SCSI Programming ? | C of Green | Networking/Device Communication | 0 | 08-14-2003 12:09 PM |