---
name: "ata_msleep"
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_msleep"
---

# ata\_msleep(9)

ATA EH owner aware msleep

## NAME

ata\_msleep - ATA EH owner aware msleep

## SYNOPSIS

**void ata\_msleep(struct ata\_port \*** *ap***, unsigned int** *msecs***);**

## ARGUMENTS

*ap*

ATA port to attribute the sleep to

*msecs*

duration to sleep in milliseconds

## DESCRIPTION

Sleeps *msecs*. If the current task is owner of *ap*'s EH, the ownership is released before going to sleep and reacquired after the sleep is complete. IOW, other ports sharing the *ap*-\>host will be allowed to own the EH while this task is sleeping.

LOCKING: Might sleep.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
