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

NAME

6       scsi_mode_sense - issue a mode sense, falling back from 10 to six bytes
7       if necessary.
8

SYNOPSIS

10       int scsi_mode_sense(struct scsi_device * sdev, int dbd, int modepage,
11                           unsigned char * buffer, int len, int timeout,
12                           int retries, struct scsi_mode_data * data,
13                           struct scsi_sense_hdr * sshdr);
14

ARGUMENTS

16       sdev
17           SCSI device to be queried
18
19       dbd
20           set if mode sense will allow block descriptors to be returned
21
22       modepage
23           mode page being requested
24
25       buffer
26           request buffer (may not be smaller than eight bytes)
27
28       len
29           length of request buffer.
30
31       timeout
32           command timeout
33
34       retries
35           number of retries before failing
36
37       data
38           returns a structure abstracting the mode header data
39
40       sshdr
41           place to put sense data (or NULL if no sense to be collected). must
42           be SCSI_SENSE_BUFFERSIZE big.
43

DESCRIPTION

45       Returns zero if unsuccessful, or the header offset (either 4 or 8
46       depending on whether a six or ten byte command was issued) if
47       successful.
48

AUTHORS

50       James Bottomley <James.Bottomley@hansenpartnership.com>
51           Author.
52
53       Rob Landley <rob@landley.net>
54           Author.
55
57Kernel Hackers Manual 2.6.         June 2019                SCSI_MODE_SENSE(9)
Impressum