'\" t .\" Title: ata_std_qc_defer .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: libata Library .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "ATA_STD_QC_DEFER" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "libata Library" .\" ----------------------------------------------------------------- .\" * 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" ata_std_qc_defer \- Check whether a qc needs to be deferred .SH "SYNOPSIS" .HP \w'int\ ata_std_qc_defer('u .BI "int ata_std_qc_defer(struct\ ata_queued_cmd\ *\ " "qc" ");" .SH "ARGUMENTS" .PP \fIqc\fR .RS 4 ATA command in question .RE .SH "DESCRIPTION" .PP Non\-NCQ commands cannot run with any other command, NCQ or not\&. As upper layer only knows the queue depth, we are responsible for maintaining exclusion\&. This function checks whether a new command \fIqc\fR can be issued\&. .PP LOCKING: spin_lock_irqsave(host lock) .SH "RETURN" .PP ATA_DEFER_* if deferring is needed, 0 otherwise\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br