---
name: "spi_populate_tag_msg"
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/spi_populate_tag_msg"
---

# spi\_populate\_tag\_msg(9)

place a tag message in a buffer

## NAME

spi\_populate\_tag\_msg - place a tag message in a buffer

## SYNOPSIS

**int spi\_populate\_tag\_msg(unsigned char \*** *msg***, struct scsi\_cmnd \*** *cmd***);**

## ARGUMENTS

*msg*

pointer to the area to place the tag

*cmd*

pointer to the scsi command for the tag

## NOTES

designed to create the correct type of tag message for the particular request. Returns the size of the tag message. May return 0 if TCQ is disabled for this device.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
