---
name: "ata_port_detach"
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_port_detach"
---

# ata\_port\_detach(9)

Detach ATA port in preparation of device removal

## NAME

ata\_port\_detach - Detach ATA port in preparation of device removal

## SYNOPSIS

**void ata\_port\_detach(struct ata\_port \*** *ap***);**

## ARGUMENTS

*ap*

ATA port to be detached

## DESCRIPTION

Detach all ATA devices and the associated SCSI devices of *ap*; then, remove the associated SCSI host. *ap* is guaranteed to be quiescent on return from this function.

LOCKING: Kernel thread context (may sleep).

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
