usb_calc_bus_time(9)
β¨ 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β fromdev->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:
ascii2desc(9)rh_string(9)usb_bus_init(9)usb_register_bus(9)usb_deregister_bus(9)register_root_hub(9)usb_hcd_link_urb_to_ep(9)usb_hcd_check_unlink_urb(9)usb_hcd_unlink_urb_from_ep(9)usb_hcd_giveback_urb(9)usb_hcd_alloc_bandwidth(9)usb_hcd_reset_endpoint(9)usb_alloc_streams(9)usb_free_streams(9)usb_hcd_resume_root_hub(9)usb_bus_start_enum(9)usb_hcd_irq(9)usb_hc_died(9)usb_create_shared_hcd(9)usb_create_hcd(9)usb_stop_hcd(9)usb_add_hcd(9)usb_remove_hcd(9)
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
- 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