Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
  1. #1
    Linux Newbie
    Join Date
    Apr 2008
    Posts
    110

    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.

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    google this:
    Code:
    scsi ioctl tutorial
    --
    Bill

    Old age and treachery will overcome youth and skill.

  3. #3
    Linux Newbie
    Join Date
    Apr 2008
    Posts
    110
    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...