hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/Documentation/scsi/scsi_mid_low_api.rst
....@@ -1195,11 +1195,11 @@
11951195 - pointer to scsi_device object that this command is
11961196 associated with.
11971197 resid
1198
- - an LLD should set this signed integer to the requested
1198
+ - an LLD should set this unsigned integer to the requested
11991199 transfer length (i.e. 'request_bufflen') less the number
12001200 of bytes that are actually transferred. 'resid' is
12011201 preset to 0 so an LLD can ignore it if it cannot detect
1202
- underruns (overruns should be rare). If possible an LLD
1202
+ underruns (overruns should not be reported). An LLD
12031203 should set 'resid' prior to invoking 'done'. The most
12041204 interesting case is data transfers from a SCSI target
12051205 device (e.g. READs) that underrun.