1. NAME

scsi_sense_desc_find - search for a given descriptor type in descriptor sense data format.

2. SYNOPSIS

const u8 * scsi_sense_desc_find(const u8 *  sense_buffer , int  sb_len , int  desc_type );

3. ARGUMENTS

sense_buffer
    byte array of descriptor format sense data

sb_len
    number of valid bytes in sense_buffer

desc_type
    value of descriptor type to find (e.g. 0 -> information)

4. NOTES

only valid when sense data is in descriptor format

5. RETURN VALUE

pointer to start of (first) descriptor if found else NULL

6. AUTHORS

James Bottomley <>
    Author.

Rob Landley <>
    Author.

7. COPYRIGHT