usb_calc_bus_time(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ usb_calc_bus_time(9) ✨

okay bestie, welcome to the Kernel API Manual page for usb_calc_bus_time(9) β€” this one is short but lowkey iconic πŸ’…


πŸŽ€ NAME πŸŽ€

usb_calc_bus_time β€” approximate periodic transaction time in nanoseconds ✨

🌸 SYNOPSIS 🌸

the whole signature, no cap:

long usb_calc_bus_time (int speed , int is_input , int isoc , int
       bytecount );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • speed β€” from dev->speed; USB_SPEED_{LOW,FULL,HIGH} πŸ’«
  • is_input β€” true iff the transaction sends data to the host 🫢
  • isoc β€” true for isochronous transactions, false for interrupt ones ⭐
  • bytecount β€” how many bytes in the transaction πŸ“

πŸ’– RETURN πŸ’–

Approximate bus time in nanoseconds for a periodic transaction. that’s the vibe, that’s the return value 😌✨

πŸ‘‘ NOTE πŸ‘‘

See USB 2.0 spec section 5.11.3; only periodic transfers need to be scheduled in software, this function is only used for such scheduling.

fr fr, that’s the whole caveat β€” don’t forget it 🧚

🌈 SEE ALSO 🌈

Kernel file ./drivers/usb/core/hcd.c and all these besties:


and that’s the page, bestie πŸ’œ source: ./drivers/usb/core Β· date: October 2026 Β· usb_calc_bus_time(9) β€” slay responsibly πŸŽ€βœ¨

πŸ“¦ where this page comes from