Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Vital Product Data to return

scsi_vpd_inquiry - Request a device provide us with a VPD page : The device to ask : Where to put the result

: The length of the buffer

This is an internal helper function. You probably want to use scsi_get_vpd_page instead.

Returns 0 on success or a negative error number.

scsi_get_vpd_page - Get Vital Product Data from a SCSI device : The device to ask

: where to store the VPD : number of bytes in the VPD buffer area

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.