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

# scsi\_add\_host\_with\_dma(9)

add a scsi host with dma device

## NAME

scsi\_add\_host\_with\_dma - add a scsi host with dma device

## SYNOPSIS

**int scsi\_add\_host\_with\_dma(struct Scsi\_Host \*** *shost***, struct device \*** *dev***, struct device \*** *dma\_dev***);**

## ARGUMENTS

*shost*

scsi host pointer to add

*dev*

a struct device of type scsi class

*dma\_dev*

dma device for the host

## NOTE

You rarely need to worry about this unless you're in a virtualised host environments, so use the simpler **scsi\_add\_host** function instead.

Return value: 0 on success / != 0 for error

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
