carta
scsi_mode_sense(9)

scsi_mode_sense9

Issue a mode sense, falling back from 10 to six bytes if necessary.

Arguments

sdev

SCSI device to be queried

dbd

set if mode sense will allow block descriptors to be returned

modepage

mode page being requested

buffer

request buffer (may not be smaller than eight bytes)

len

length of request buffer.

timeout

command timeout

retries

number of retries before failing

data

returns a structure abstracting the mode header data

sshdr

place to put sense data (or NULL if no sense to be collected). must be SCSI_SENSE_BUFFERSIZE big.

Overview

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.

History

  • Debian 9 (Stretch): the text shown here
  • Debian 8 (Jessie)
  • Debian 7 (Wheezy)
  • Debian 6.0 (Squeeze)
  • Debian 5.0 (Lenny)

Authors

James Bottomley <[email protected]>

Author.

Rob Landley <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.