1SCSI_GET_VPD_PAGE(9) SCSI mid layer SCSI_GET_VPD_PAGE(9)
2
3
4
6 scsi_get_vpd_page - Get Vital Product Data from a SCSI device
7
9 int scsi_get_vpd_page(struct scsi_device * sdev, u8 page,
10 unsigned char * buf, int buf_len);
11
13 sdev
14 The device to ask
15
16 page
17 Which Vital Product Data to return
18
19 buf
20 where to store the VPD
21
22 buf_len
23 number of bytes in the VPD buffer area
24
26 SCSI devices may optionally supply Vital Product Data. Each 'page' of
27 VPD is defined in the appropriate SCSI document (eg SPC, SBC). If the
28 device supports this VPD page, this routine returns a pointer to a
29 buffer containing the data from that page. The caller is responsible
30 for calling kfree on this pointer when it is no longer needed. If we
31 cannot retrieve the VPD page this routine returns NULL.
32
34 James Bottomley <James.Bottomley@hansenpartnership.com>
35 Author.
36
37 Rob Landley <rob@landley.net>
38 Author.
39
41Kernel Hackers Manual 3.10 June 2019 SCSI_GET_VPD_PAGE(9)