usb_endpoint_maxp(9)
π usb_endpoint_maxp(9) β the Kernel API Manual, bestie edition π
okay so welcome to the Kernel API Manual, and today's main character is usb_endpoint_maxp(9). she's short, she's sweet, she returns a number. let's get into it β¨
πΈ NAME πΈ
usb_endpoint_maxp β grab that endpoint's max packet size, no cap π
π¦ SYNOPSIS π¦
int usb_endpoint_maxp (const struct usb_endpoint_descriptor *epd );
yes that's the whole thing. one function, one argument, one int coming right back at you π«Ά
π ARGUMENTS π
epdβ the endpoint you want checked π literally just hand her the endpoint descriptor and she'll do the rest, iykyk
β¨ DESCRIPTION β¨
she returns epd's max packet bits, and the bits she wants are [10:0] π
that's it. that's the function. bits [10:0], nothing more, nothing less β lowkey iconic for how unbothered she is π
π₯ SEE ALSO π₯
the whole friend group, fr fr π«Ά take a little tour:
- kernel file
./include/uapi/linux/usb/ch9.h struct usb_ctrlrequest(9)usb_endpoint_num(9)usb_endpoint_type(9)usb_endpoint_dir_in(9)usb_endpoint_dir_out(9)usb_endpoint_xfer_bulk(9)usb_endpoint_xfer_control(9)usb_endpoint_xfer_int(9)usb_endpoint_xfer_isoc(9)usb_endpoint_is_bulk_in(9)usb_endpoint_is_bulk_out(9)usb_endpoint_is_int_in(9)usb_endpoint_is_int_out(9)usb_endpoint_is_isoc_in(9)usb_endpoint_is_isoc_out(9)usb_endpoint_maxp_mult(9)
like, she keeps good company π
ngl this page is from./include/uapi/linux/usband it's dated October 2026 β and the header up top isusb_endpoint_maxp(9), so now you know exactly where she lives π§ mwah, go read some endpoints bestie ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms