scsi_get_vpd_page9
Get vital product data from a scsi device
Usage
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
Overview
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.
Releases
4 releases since Debian 6.0 (Squeeze); the text changed 3 times.