---
name: "scsi_host_lookup"
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_lookup"
---

# scsi\_host\_lookup(9)

get a reference to a Scsi\_Host by host no

## NAME

scsi\_host\_lookup - get a reference to a Scsi\_Host by host no

## SYNOPSIS

**struct Scsi\_Host \* scsi\_host\_lookup(unsigned short** *hostnum***);**

## ARGUMENTS

*hostnum*

host number to locate

## DESCRIPTION

Return value: A pointer to located Scsi\_Host or NULL.

The caller must do a **scsi\_host\_put** to drop the reference that **scsi\_host\_get** took. The **put\_device** below dropped the reference from **class\_find\_device**.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
