---
name: "usb_ep_align"
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_ep_align"
---

# usb\_ep\_align(9)

returns len aligned to ep's maxpacketsize.

## NAME

usb\_ep\_align - returns *len* aligned to ep's maxpacketsize.

## SYNOPSIS

**size\_t usb\_ep\_align(struct usb\_ep \*** *ep***, size\_t** *len***);**

## ARGUMENTS

*ep*

the endpoint whose maxpacketsize is used to align *len*

*len*

buffer size's length to align to *ep*'s maxpacketsize

## DESCRIPTION

This helper is used to align buffer's size to an ep's maxpacketsize.

## AUTHOR

**David Brownell** \<dbrownell@users.sourceforge.net\>

Author.

## COPYRIGHT
