udi_scsi_inquiry_to_string(3udi)


Encode SCSI INQUIRY data as a string

SYNOPSIS

#include <udi.h>

void udi_scsi_inquiry_to_string (

	const udi_ubit8_t *inquiry_data,

	udi_size_t inquiry_len,

	char *str );
 

ARGUMENTS inquiry_data is a pointer to up to 36 bytes of SCSI INQUIRY data.

inquiry_len is the length of the inquiry_data array.

str is a pointer to a character array, at least 45 bytes long, that will be filled in with the encoded string.

description This utility function converts binary SCSI INQUIRY data to a string, encoded as required for the "identifier" attribute when the device does not have a LUN World-Wide ID. See Section 2.5.2.2.1, "identifier attribute" for details.


UDI SCSI Driver Specification Contents