---
name: "ata_scsiop_mode_sense"
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/ata_scsiop_mode_sense"
---

# ata\_scsiop\_mode\_sense(9)

Simulate MODE SENSE 6, 10 commands

## NAME

ata\_scsiop\_mode\_sense - Simulate MODE SENSE 6, 10 commands

## SYNOPSIS

**unsigned int ata\_scsiop\_mode\_sense(struct ata\_scsi\_args \*** *args***, u8 \*** *rbuf***);**

## ARGUMENTS

*args*

device IDENTIFY data / SCSI command of interest.

*rbuf*

Response buffer, to which simulated SCSI cmd output is sent.

## DESCRIPTION

Simulate MODE SENSE commands. Assume this is invoked for direct access devices (e.g. disks) only. There should be no block descriptor for other device types.

LOCKING: spin\_lock\_irqsave(host lock)

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
