ATA_QC_COMPLETE_MULT(9) libata Library ATA_QC_COMPLETE_MULT(9)NAMEata_qc_complete_multiple - Complete multiple qcs successfully
int ata_qc_complete_multiple(struct ata_port * ap, u32 qc_active);
port in question
new qc_active mask
Complete in-flight commands. This functions is meant to be called from
low-level driver's interrupt routine to complete requests normally.
ap->qc_active and qc_active is compared and commands are completed
Always use this function when completing multiple NCQ commands from IRQ
handlers instead of calling ata_qc_complete multiple times to keep IRQ
expect status properly in sync.
Number of completed commands on success, -errno otherwise.
COPYRIGHTKernel Hackers Manual 3.8. June 2014 ATA_QC_COMPLETE_MULT(9)