---
name: "ata_dev_set_feature"
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_dev_set_feature"
---

# ata\_dev\_set\_feature(9)

Issue SET FEATURES - SATA FEATURES

## NAME

ata\_dev\_set\_feature - Issue SET FEATURES - SATA FEATURES

## SYNOPSIS

**unsigned int ata\_dev\_set\_feature(struct ata\_device \*** *dev***, u8** *enable***, u8** *feature***);**

## ARGUMENTS

*dev*

Device to which command will be sent

*enable*

Whether to enable or disable the feature

*feature*

The sector count represents the feature to set

## DESCRIPTION

Issue SET FEATURES - SATA FEATURES command to device *dev* on port *ap* with sector count

LOCKING: PCI/etc. bus probe sem.

## RETURN

0 on success, AC\_ERR\_\* mask otherwise.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
