---
name: "scsi_get_vpd_page"
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_get_vpd_page"
---

# scsi\_get\_vpd\_page(9)

Get Vital Product Data from a SCSI device

## NAME

scsi\_get\_vpd\_page - Get Vital Product Data from a SCSI device

## SYNOPSIS

**int scsi\_get\_vpd\_page(struct scsi\_device \*** *sdev***, u8** *page***, unsigned char \*** *buf***, int** *buf\_len***);**

## ARGUMENTS

*sdev*

The device to ask

*page*

Which Vital Product Data to return

*buf*

where to store the VPD

*buf\_len*

number of bytes in the VPD buffer area

## DESCRIPTION

SCSI devices may optionally supply Vital Product Data. Each 'page' of VPD is defined in the appropriate SCSI document (eg SPC, SBC). If the device supports this VPD page, this routine returns a pointer to a buffer containing the data from that page. The caller is responsible for calling **kfree** on this pointer when it is no longer needed. If we cannot retrieve the VPD page this routine returns **NULL**.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
