---
name: "usb_get_current_frame_number"
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_get_current_frame_number"
---

# usb\_get\_current\_frame\_number(9)

return current bus frame number

## NAME

usb\_get\_current\_frame\_number - return current bus frame number

## SYNOPSIS

**int usb\_get\_current\_frame\_number(struct usb\_device \*** *dev***);**

## ARGUMENTS

*dev*

the device whose bus is being queried

## RETURN

The current frame number for the USB host controller used with the given USB device. This can be used when scheduling isochronous requests.

## NOTE

Different kinds of host controller have different “scheduling horizons”. While one type might support scheduling only 32 frames into the future, others could support scheduling up to 1024 frames into the future.

## COPYRIGHT
