---
name: "scsi_probe_lun"
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_probe_lun"
---

# scsi\_probe\_lun(9)

probe a single LUN using a SCSI INQUIRY

## NAME

scsi\_probe\_lun - probe a single LUN using a SCSI INQUIRY

## SYNOPSIS

**int scsi\_probe\_lun(struct scsi\_device \*** *sdev***, unsigned char \*** *inq\_result***, int** *result\_len***, int \*** *bflags***);**

## ARGUMENTS

*sdev*

scsi\_device to probe

*inq\_result*

area to store the INQUIRY result

*result\_len*

len of inq\_result

*bflags*

store any bflags found here

## DESCRIPTION

Probe the lun associated with *req* using a standard SCSI INQUIRY;

If the INQUIRY is successful, zero is returned and the INQUIRY data is in *inq\_result*; the scsi\_level and INQUIRY length are copied to the scsi\_device any flags value is stored in \**bflags*.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
