1SCSI_VPD_LUN_ID(9) SCSI mid layer SCSI_VPD_LUN_ID(9)
2
3
4
6 scsi_vpd_lun_id - return a unique device identification
7
9 int scsi_vpd_lun_id(struct scsi_device * sdev, char * id,
10 size_t id_len);
11
13 sdev
14 SCSI device
15
16 id
17 buffer for the identification
18
19 id_len
20 length of the buffer
21
23 Copies a unique device identification into id based on the information
24 in the VPD page 0x83 of the device. The string will be formatted as a
25 SCSI name string.
26
27 Returns the length of the identification or error on failure. If the
28 identifier is longer than the supplied buffer the actual identifier
29 length is returned and the buffer is not zero-padded.
30
32 James Bottomley <James.Bottomley@hansenpartnership.com>
33 Author.
34
35 Rob Landley <rob@landley.net>
36 Author.
37
39Kernel Hackers Manual 3.10 June 2019 SCSI_VPD_LUN_ID(9)