dwc2_check_max_xfer_size(9)
β¨ NAME β¨
okay so bestie, this is dwc2_check_max_xfer_size(9), and it comes straight from the Kernel API Manual π«Ά. Its whole thing is checking that the max transfer size allowed in a host channel is large enough to handle the maximum data transfer in a single (micro)frame for a periodic transfer β¨. That's the vibe, and it's lowkey iconic.
πΈ SYNOPSIS πΈ
int dwc2_check_max_xfer_size (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh );
No cap, that's the exact signature β do not come for me about the spaces π .
π ARGUMENTS π
hsotgβ the HCD state structure for the DWC OTG controller. It's giving "main character state struct" energy π.qhβ QH for a periodic endpoint. Yep, that's the periodic-endpoint QH, bestie π¦.
π RETURN π
0 if successful β
, negative error code otherwise π. So like, happy path gets a zero, bad path gets a negative code β periodt.
π SEE ALSO π
the extended universe, fr fr β go read these:
- Kernel file
./drivers/usb/dwc2/hcd_queue.c dwc2_periodic_channel_available(9)dwc2_check_periodic_bandwidth(9)pmap_schedule(9)pmap_unschedule(9)dwc2_get_ls_map(9)dwc2_qh_print(9)dwc2_qh_schedule_print(9)dwc2_ls_pmap_schedule(9)dwc2_ls_pmap_unschedule(9)dwc2_hs_pmap_schedule(9)dwc2_hs_pmap_unschedule(9)dwc2_uframe_schedule_split(9)dwc2_uframe_schedule_hs(9)dwc2_uframe_schedule_ls(9)dwc2_uframe_schedule(9)dwc2_uframe_unschedule(9)dwc2_pick_first_frame(9)dwc2_do_reserve(9)dwc2_do_unreserve(9)dwc2_unreserve_timer_fn(9)dwc2_schedule_periodic(9)dwc2_deschedule_periodic(9)dwc2_wait_timer_fn(9)dwc2_qh_init(9)dwc2_hcd_qh_create(9)dwc2_hcd_qh_free(9)dwc2_hcd_qh_add(9)dwc2_hcd_qh_unlink(9)dwc2_next_for_periodic_split(9)dwc2_next_periodic_start(9)dwc2_hcd_qtd_init(9)dwc2_hcd_qtd_add(9)
source/version: ./drivers/usb/dwc2 Β· October 2026 Β· from the Kernel API Manual β mwah, 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