---
name: "scsi_free_command"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_free_command"
---

# scsi\_free\_command(9)

free a command allocated by scsi\_allocate\_command

## NAME

scsi\_free\_command - free a command allocated by scsi\_allocate\_command

## SYNOPSIS

**void scsi\_free\_command(gfp\_t** *gfp\_mask***, struct scsi\_cmnd \*** *cmd***);**

## ARGUMENTS

*gfp\_mask*

mask used in the original allocation

*cmd*

command to free

## NOTE

using the original allocation mask is vital because that's what determines which command pool we use to free the command. Any mismatch will cause the system to BUG eventually.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
