---
name: "scsi_get_command"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_get_command"
---

# scsi\_get\_command(9)

Allocate and setup a scsi command block

## NAME

scsi\_get\_command - Allocate and setup a scsi command block

## SYNOPSIS

**struct scsi\_cmnd \* scsi\_get\_command(struct scsi\_device \*** *dev***, gfp\_t** *gfp\_mask***);**

## ARGUMENTS

*dev*

parent scsi device

*gfp\_mask*

allocator flags

## RETURNS

The allocated scsi command structure.

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
