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

# atapi\_drain\_needed(9)

Check whether data transfer may overflow

## NAME

atapi\_drain\_needed - Check whether data transfer may overflow

## SYNOPSIS

**int atapi\_drain\_needed(struct request \*** *rq***);**

## ARGUMENTS

*rq*

request to be checked

## DESCRIPTION

ATAPI commands which transfer variable length data to host might overflow due to application error or hardware bug. This function checks whether overflow should be drained and ignored for *request*.

LOCKING: None.

## RETURN

1 if ; otherwise, 0.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
