Talking to an I/O device
Hi,
I'm trying to write an application in C that sends SCSI commands to a USB Mass Storage device in Linux. I know how to do this in Windows using devioctl library function calls, but I've no experience doing this in Linux. From what I've gathered the equivalent function call is ioctl, but I'm not sure how to use it. I've read the man pages and some online help/tutorials but the call seems to be quite different from the way it's used in Windows...or maybe I'm understanding it wrongly.
Are there any tutorials on device communication programming?
TIA.
|