ata_scsi_qc_new(9)

ata_scsi_qc_new9

Acquire new ata_queued_cmd reference

Usage

struct ata_queued_cmd * ata_scsi_qc_new(struct ata_device * dev, struct scsi_cmnd * cmd);

Arguments

dev

ATA device to which the new command is attached

cmd

SCSI command that originated this ATA command

Overview

Obtain a reference to an unused ata_queued_cmd structure, which is the basic libata structure representing a single ATA command sent to the hardware.

If a command was available, fill in the SCSI-specific portions of the structure with information on the current command.

LOCKING: spin_lock_irqsave(host lock)

Return

Command allocated, or NULL if none available.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

Author

Jeff Garzik

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.