usb_decode_interval(9)
β¨ 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 actualstruct usb_endpoint_descriptorfor the endpoint you're curious about.speedβ the speed that the endpoint works as πββοΈ it's anenum 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 π
- the kernel file
./drivers/usb/common/common.cβ that's where this cutie lives π usb_ep_type_string(9)usb_otg_state_string(9)usb_speed_string(9)usb_get_maximum_speed(9)usb_get_maximum_ssp_rate(9)usb_state_string(9)usb_get_dr_mode_from_string(9)usb_get_role_switch_default_mode(9)of_usb_get_dr_mode_by_phy(9)of_usb_host_tpl_support(9)of_usb_update_otg_caps(9)usb_of_get_companion_dev(9)
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
- 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