1SCSI_REPORT_OPCODE(9)           SCSI mid layer           SCSI_REPORT_OPCODE(9)
2
3
4

NAME

6       scsi_report_opcode - Find out if a given command opcode is supported
7

SYNOPSIS

9       int scsi_report_opcode(struct scsi_device * sdev,
10                              unsigned char * buffer, unsigned int len,
11                              unsigned char opcode);
12

ARGUMENTS

14       sdev
15           scsi device to query
16
17       buffer
18           scratch buffer (must be at least 20 bytes long)
19
20       len
21           length of buffer
22
23       opcode
24           opcode for command to look up
25

DESCRIPTION

27       Uses the REPORT SUPPORTED OPERATION CODES to look up the given opcode.
28       Returns -EINVAL if RSOC fails, 0 if the command opcode is unsupported
29       and 1 if the device claims to support the command.
30

AUTHORS

32       James Bottomley <James.Bottomley@hansenpartnership.com>
33           Author.
34
35       Rob Landley <rob@landley.net>
36           Author.
37
39Kernel Hackers Manual 3.10         June 2019             SCSI_REPORT_OPCODE(9)
Impressum