Subject: Re: scsi mid-layer/driver interface question
To: Ignatios Souvatzis <is@netbsd.org>
From: Matthew Jacob <mjacob@feral.com>
List: tech-kern
Date: 06/02/2002 14:49:50
On Sun, 2 Jun 2002, Ignatios Souvatzis wrote:

> On Sun, Jun 02, 2002 at 01:49:11PM -0700, Matthew Jacob wrote:
> > 
> > Uh, It's xxx->resid that's supposed to be set. Seems like this a bug in siop2.
> 
> To the xxx->xxx_size - (what I managed to read/write), right?
> 

Sorry- let me try to be clearer- you're given a struct scsipi_xfer *xs, and
xs->datalen should be the overall length of data expected to be moved, so
xs->resid is set at the end of a command to how many bytes were *not* moved.

-matt