bicepjai wrote:
> bicepjai wrote:
> >
> > Sg utils can handle all scsi commands. Is there any tool that can handle task management functions.
> > If theres is none, can linux scsi generic layer handle task management information units in ssp frames. ?
> >
> > I am trying to test my target device with some task management functions as explained in sam-5.
>
> can linux ioctls handle task management functions
Here is some documentation for sg in general and for the usage with
ioctl() too:
http://www.faqs.org/docs/Linux-HOWTO/SCSI-Generic-HOWTO.html
Looks like the older sg1..sg3 interfaces can't do that you want. But
recent kernels have the sg4 interface available via /dev/bsg* devices. I
have never used it, but maybe that can help you.
Micha
--
http://micha.freeshell.org/