[8710] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: question on short transfers

daemon@ATHENA.MIT.EDU (Douglas Gilbert)
Tue Apr 25 09:34:24 2000

Message-ID: <39059E0B.993A7869@interlog.com>
Date:	Tue, 25 Apr 2000 09:30:51 -0400
From: Douglas Gilbert <dgilbert@interlog.com>
MIME-Version: 1.0
To: Oliver Neukum <Oliver.Neukum@lrz.uni-muenchen.de>
Cc: linux-scsi@vger.rutgers.edu
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Oliver Neukum wrote:
> 
> Hi,
> 
> how do I indicate to the higher layers that less data than requested has
> been transfered ?

In lk 2.3/2.4 with:
        int resid;              /* Number of bytes requested to be
                                   transferred less actual number
                                   transferred (0 if not supported) */
See aha152x or advansys drivers for examples of this. The sg driver
since lk 2.3.43 makes resid available to user applications.

Also in lk 2.2, 2.3/2.4 there is:
        unsigned underflow;     /* Return error if less than
                                   this amount is transfered */
See the aic7xxx driver for an example.


Doug Gilbert

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post