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 [EMAIL PROTECTED]