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

# usb\_wait\_anchor\_empty\_timeout(9)

wait for an anchor to be unused

## NAME

usb\_wait\_anchor\_empty\_timeout - wait for an anchor to be unused

## SYNOPSIS

**int usb\_wait\_anchor\_empty\_timeout(struct usb\_anchor \*** *anchor***, unsigned int** *timeout***);**

## ARGUMENTS

*anchor*

the anchor you want to become unused

*timeout*

how long you are willing to wait in milliseconds

## DESCRIPTION

Call this is you want to be sure all an anchor's URBs have finished

## RETURN

Non-zero if the anchor became unused. Zero on timeout.

## COPYRIGHT
