---
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 a struct scsi\_cmnd

## NAME

\_\_scsi\_get\_command - Allocate a struct scsi\_cmnd

## SYNOPSIS

**struct scsi\_cmnd \* \_\_scsi\_get\_command(struct Scsi\_Host \*** *shost***, gfp\_t** *gfp\_mask***);**

## ARGUMENTS

*shost*

host to transmit command

*gfp\_mask*

allocation mask

## DESCRIPTION

allocate a struct scsi\_cmd from host's slab, recycling from the host's free\_list if necessary.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
