---
name: "ata_scsi_dev_enabled"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_scsi_dev_enabled"
---

# ata\_scsi\_dev\_enabled(9)

determine if device is enabled

## NAME

ata\_scsi\_dev\_enabled - determine if device is enabled

## SYNOPSIS

**int ata\_scsi\_dev\_enabled(struct ata\_device \*** *dev***);**

## ARGUMENTS

*dev*

ATA device

## DESCRIPTION

Determine if commands should be sent to the specified device.

## LOCKING

spin\_lock\_irqsave(host lock)

## RETURNS

0 if commands are not allowed / 1 if commands are allowed

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
