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

NAME

6       scsi_mode_select - issue a mode select
7

SYNOPSIS

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

ARGUMENTS

16       sdev
17           SCSI device to be queried
18
19       pf
20           Page format bit (1 == standard, 0 == vendor specific)
21
22       sp
23           Save page bit (0 == don't save, 1 == save)
24
25       modepage
26           mode page being requested
27
28       buffer
29           request buffer (may not be smaller than eight bytes)
30
31       len
32           length of request buffer.
33
34       timeout
35           command timeout
36
37       retries
38           number of retries before failing
39
40       data
41           returns a structure abstracting the mode header data
42
43       sshdr
44           place to put sense data (or NULL if no sense to be collected). must
45           be SCSI_SENSE_BUFFERSIZE big.
46

DESCRIPTION

48       Returns zero if successful; negative error number or scsi status on
49       error
50

AUTHORS

52       James Bottomley <James.Bottomley@hansenpartnership.com>
53           Author.
54
55       Rob Landley <rob@landley.net>
56           Author.
57
59Kernel Hackers Manual 2.6.       November 2011             SCSI_MODE_SELECT(9)
Impressum