---
name: "scsi_vpd_lun_id"
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_vpd_lun_id"
---

# scsi\_vpd\_lun\_id(9)

return a unique device identification

## NAME

scsi\_vpd\_lun\_id - return a unique device identification

## SYNOPSIS

**int scsi\_vpd\_lun\_id(struct scsi\_device \*** *sdev***, char \*** *id***, size\_t** *id\_len***);**

## ARGUMENTS

*sdev*

SCSI device

*id*

buffer for the identification

*id\_len*

length of the buffer

## DESCRIPTION

Copies a unique device identification into *id* based on the information in the VPD page 0x83 of the device. The string will be formatted as a SCSI name string.

Returns the length of the identification or error on failure. If the identifier is longer than the supplied buffer the actual identifier length is returned and the buffer is not zero-padded.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
