Re: [[email protected]: Interface for SCSI transactions ?]

Samuel Thibault <[email protected]>
Newsgroups gmane.os.hurd.bugs,gmane.os.hurd.general
Message-ID <[email protected]>
[email protected], le Sun 10 Apr 2011 06:43:04 +0200, a écrit :
> i would like to check out whether there is documentation
> or an interested tutor for the tasks of listing all MMC drives, getting
> (exclusive) access to a drive, sending SCSI commands, getting reply
> data and error indications.

That interface isn't complete: the GNU Mach kernel uses linux drivers
internally, and the scsi_ioctl() function is available there (thus with
the linuxish interface), but its features have not been propagated to
the device_get/set_status() user interface yet. It should be quite
easy to add it, however, see the device_get/set_status() functions in
gnumach/linux/dev/glue/block.c

Samuel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.