---
name: "scsi_host_alloc"
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_host_alloc"
---

# scsi\_host\_alloc(9)

register a scsi host adapter instance.

## NAME

scsi\_host\_alloc - register a scsi host adapter instance.

## SYNOPSIS

**struct Scsi\_Host \* scsi\_host\_alloc(struct scsi\_host\_template \*** *sht***, int** *privsize***);**

## ARGUMENTS

*sht*

pointer to scsi host template

*privsize*

extra bytes to allocate for driver

## NOTE

Allocate a new Scsi\_Host and perform basic initialization. The host is not published to the scsi midlayer until scsi\_add\_host is called.

Return value: Pointer to a new Scsi\_Host

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
