Subject: Re: scsi mid-layer/driver interface question
To: Matthew Jacob <mjacob@feral.com>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-kern
Date: 06/03/2002 12:05:40
--Y4VYWfdFdHwFhC6D
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jun 02, 2002 at 02:49:50PM -0700, Matthew Jacob wrote:
>=20
>=20
> On Sun, 2 Jun 2002, Ignatios Souvatzis wrote:
>=20
> > On Sun, Jun 02, 2002 at 01:49:11PM -0700, Matthew Jacob wrote:
> > >=20
> > > Uh, It's xxx->resid that's supposed to be set. Seems like this a bug =
in siop2.
> >=20
> > To the xxx->xxx_size - (what I managed to read/write), right?
> >=20
>=20
> Sorry- let me try to be clearer- you're given a struct scsipi_xfer *xs, a=
nd
> 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* mov=
ed.

Exactly what I tried to express in that pseudocode - at the end I'll do
xxx->resid =3D xxx->datalen - amountmoved.

Thanks for clarifying this.

Regards,
	Ignatios

--Y4VYWfdFdHwFhC6D
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBPPs/cTCn4om+4LhpAQGH6wf/QdVLU1AmZXTGRMwpsrTkQFCfTmntzzra
1Ii4Cp8/4vPN2JPsBtLSZjja+rgvTy/eyd9tC/UNwKNJw6gLUijvFLBoZyJZIzhH
TNzNQDaUXB8pEf8PHnhV5KsFjAtFpf0EtnFkllaxz0BLrqWZTjvH5LW10CNwRAmP
1PGt2CI3PTcX3TRi2sb4RM4gDihdIRLx1DXpw2OxjIf3214wUPGu0hVZLhZd9IgD
q0eJp7HnGycRS36m1QEfX9rFKG6ZUk39nn1XMC729kLPZY6mA9H92bfN1Ok/KoWH
Us1AsL1AAEWGVWUDF3aTglTYxC/LR44t/Zp3H0Y8DwpP2+0WM/Mrdg==
=N8z6
-----END PGP SIGNATURE-----

--Y4VYWfdFdHwFhC6D--