---
name: "scsi_target_reap_ref_release"
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_target_reap_ref_release"
---

# scsi\_target\_reap\_ref\_release(9)

remove target from visibility

## NAME

scsi\_target\_reap\_ref\_release - remove target from visibility

## SYNOPSIS

**void scsi\_target\_reap\_ref\_release(struct kref \*** *kref***);**

## ARGUMENTS

*kref*

the reap\_ref in the target being released

## DESCRIPTION

Called on last put of reap\_ref, which is the indication that no device under this target is visible anymore, so render the target invisible in sysfs. Note: we have to be in user context here because the target reaps should be done in places where the scsi device visibility is being removed.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
