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

# fc\_remove\_host(9)

called to terminate any fc\_transport-related elements for a scsi host.

## NAME

fc\_remove\_host - called to terminate any fc\_transport-related elements for a scsi host.

## SYNOPSIS

**void fc\_remove\_host(struct Scsi\_Host \*** *shost***);**

## ARGUMENTS

*shost*

Which Scsi\_Host

## DESCRIPTION

This routine is expected to be called immediately preceding the a driver's call to **scsi\_remove\_host**.

WARNING: A driver utilizing the fc\_transport, which fails to call this routine prior to **scsi\_remove\_host**, will leave dangling objects in /sys/class/fc\_remote\_ports. Access to any of these objects can result in a system crash !!!

## NOTES

This routine assumes no locks are held on entry.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
