---
name: "scsi_sequential_lun_scan"
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_sequential_lun_scan"
---

# scsi\_sequential\_lun\_scan(9)

sequentially scan a SCSI target

## NAME

scsi\_sequential\_lun\_scan - sequentially scan a SCSI target

## SYNOPSIS

**void scsi\_sequential\_lun\_scan(struct scsi\_target \*** *starget***, int** *bflags***, int** *scsi\_level***, enum scsi\_scan\_mode** *rescan***);**

## ARGUMENTS

*starget*

pointer to target structure to scan

*bflags*

black/white list flag for LUN 0

*scsi\_level*

Which version of the standard does this device adhere to

*rescan*

passed to **scsi\_probe\_add\_lun**

## DESCRIPTION

Generally, scan from LUN 1 (LUN 0 is assumed to already have been scanned) to some maximum lun until a LUN is found with no device attached. Use the bflags to figure out any oddities.

Modifies sdevscan-\>lun.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
