---
name: "scsi_device_quiesce"
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_device_quiesce"
---

# scsi\_device\_quiesce(9)

Block user issued commands.

## NAME

scsi\_device\_quiesce - Block user issued commands.

## SYNOPSIS

**int scsi\_device\_quiesce(struct scsi\_device \*** *sdev***);**

## ARGUMENTS

*sdev*

scsi device to quiesce.

## DESCRIPTION

This works by trying to transition to the SDEV\_QUIESCE state (which must be a legal transition). When the device is in this state, only special requests will be accepted, all others will be deferred. Since special requests may also be requeued requests, a successful return doesn't guarantee the device will be totally quiescent.

Must be called with user context, may sleep.

Returns zero if unsuccessful or an error if not.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
