usb_ep_align (9) - Linux Manuals

usb_ep_align: 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 [at] users.sourceforge.net>

Author.

COPYRIGHT