SCSI_MODE_SENSE(9) | SCSI mid layer | SCSI_MODE_SENSE(9) |
NAME¶
scsi_mode_sense - issue a mode sense, falling back from 10 to six bytes if necessary.
SYNOPSIS¶
int scsi_mode_sense(struct scsi_device * sdev, int dbd, int modepage, unsigned char * buffer, int len, int timeout, int retries, struct scsi_mode_data * data, struct scsi_sense_hdr * sshdr);
ARGUMENTS¶
struct scsi_device * sdev
int dbd
int modepage
unsigned char * buffer
int len
int timeout
int retries
struct scsi_mode_data * data
struct scsi_sense_hdr * sshdr
DESCRIPTION¶
Returns zero if unsuccessful, or the header offset (either 4 or 8 depending on whether a six or ten byte command was issued) if successful.
AUTHORS¶
James Bottomley <James.Bottomley@hansenpartnership.com>
Rob Landley <rob@landley.net>
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |