---
name: "scsi_mode_select"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_mode_select"
---

# scsi\_mode\_select(9)

issue a mode select

## NAME

scsi\_mode\_select - issue a mode select

## SYNOPSIS

**int scsi\_mode\_select(struct scsi\_device \*** *sdev***, int** *pf***, int** *sp***, int** *modepage***, unsigned char \*** *buffer***, int** *len***, int** *timeout***, int** *retries***, struct scsi\_mode\_data \*** *data***, struct scsi\_sense\_hdr \*** *sshdr***);**

## ARGUMENTS

*sdev*

SCSI device to be queried

*pf*

Page format bit (1 == standard, 0 == vendor specific)

*sp*

Save page bit (0 == don't save, 1 == save)

*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.

## DESCRIPTION

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

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
