---
name: "ata_scsi_qc_new"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_scsi_qc_new"
---

# ata\_scsi\_qc\_new(9)

acquire new ata\_queued\_cmd reference

## NAME

ata\_scsi\_qc\_new - acquire new ata\_queued\_cmd reference

## SYNOPSIS

**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

## DESCRIPTION

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.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
