'\" t .\" Title: atapi_drain_needed .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: libata SCSI translation/emulation .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "ATAPI_DRAIN_NEEDED" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "libata SCSI translation/emulat" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" atapi_drain_needed \- Check whether data transfer may overflow .SH "SYNOPSIS" .HP \w'int\ atapi_drain_needed('u .BI "int atapi_drain_needed(struct\ request\ *\ " "rq" ");" .SH "ARGUMENTS" .PP \fIrq\fR .RS 4 request to be checked .RE .SH "DESCRIPTION" .PP ATAPI commands which transfer variable length data to host might overflow due to application error or hardware bug\&. This function checks whether overflow should be drained and ignored for \fIrequest\fR\&. .PP LOCKING: None\&. .SH "RETURN" .PP 1 if ; otherwise, 0\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br