I'm rather a newbie in the SCSI programming world, be generous! :-)

I'm developing a cd-da player and I need do identify an IDE cdrom from a
SCSI or emulated one, since for the SCSI I have written generic mmc
commands, and for the IDE ... I don't know (other people are doing this
:-).
As I've said SCSI devices are controlled via generic commands on their sg
interface. This is very powerful but has one "problem": it needs rw accedd
to the devfile. It's not good to grant users write access to cdrom or
writer devfile, isn't it? I've read in sg notes there is another way by
ioctl()ing the kernel (scsi_ioctl_send_command). But if I convert the scsi
handling function into ioctl what read/write permissions will be required
to the devfiles? Normal users will be able to use this?
And finally: where can I take some examples of scsi_ioctl... use?
Suggestions are VERY welcome!

--
  Giuseppe "Cowo" Corbelli >> Riding on Linux 2.2.14
------------------------------------------------------
-<= Won't You Take A Chance On This Night Child And Follow Me =>-
                Savatage - Follow Me


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to