usb_decode_interval(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ usb_decode_interval(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one lives in the USB corner of the kernel and it's genuinely so useful, no cap.


πŸŽ€ NAME πŸŽ€

usb_decode_interval β€” literally decodes bInterval into the time expressed in 1us unit. that's it, that's the whole gig πŸ’…


🌸 SYNOPSIS 🌸

unsigned int usb_decode_interval (const struct usb_endpoint_descriptor
*epd , enum usb_device_speed speed );

bestie look at that return type β€” unsigned int, we love a whole number ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • epd β€” the descriptor of the endpoint πŸ’Œ like, the actual struct usb_endpoint_descriptor for the endpoint you're curious about.
  • speed β€” the speed that the endpoint works as πŸƒβ€β™€οΈ it's an enum usb_device_speed, and yes it matters because the decoding depends on it.

πŸ“ DESCRIPTION πŸ“

so the function returns the interval expressed in 1us unit for servicing the endpoint for data transfers 🫢 that's the vibe. you hand it the endpoint descriptor plus the speed, it hands you back a nice little number telling you how often that endpoint wants attention, measured in 1us units. iconic behaviour honestly πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ


ngl if you're digging around in USB endpoint timing this is your moment, go read the friends above too πŸ’€πŸŒΈ

k byeee, this page was served fresh from ./drivers/usb/common and dated October 2026 πŸŽ€ catch you in the next manpage bestie πŸ˜­πŸ’–

πŸ“¦ where this page comes from