1SCSI_SENSE_DESC_FIND(9) SCSI mid layer SCSI_SENSE_DESC_FIND(9)
2
3
4
6 scsi_sense_desc_find - search for a given descriptor type in descriptor
7 sense data format.
8
10 const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len,
11 int desc_type);
12
14 sense_buffer
15 byte array of descriptor format sense data
16
17 sb_len
18 number of valid bytes in sense_buffer
19
20 desc_type
21 value of descriptor type to find (e.g. 0 -> information)
22
24 only valid when sense data is in descriptor format
25
27 pointer to start of (first) descriptor if found else NULL
28
30 James Bottomley <James.Bottomley@hansenpartnership.com>
31 Author.
32
33 Rob Landley <rob@landley.net>
34 Author.
35
37Kernel Hackers Manual 2.6. November 2011 SCSI_SENSE_DESC_FIND(9)