dwc2_next_periodic_start(9)
π
dwc2_next_periodic_start(9) β the Kernel API Manual page, but make it cute β¨
okay so welcome to the Kernel API Manual entry for dwc2_next_periodic_start(9) β manual name folded right in near the top, bestie π«Ά
πΈ NAME πΈ
dwc2_next_periodic_start β Set next_active_frame for next transfer start. π
β¨ SYNOPSIS β¨
int dwc2_next_periodic_start (struct dwc2_hsotg *hsotg , struct dwc2_qh
*qh , u16 frame_number );
π ARGUMENTS π
hsotgβ The HCD state structure. Thatβs the big state baby, no cap πqhβ QH for the periodic transfer. Itβs giving queue-head main character energy π¦frame_numberβ The current frame number. The frame weβre on right now, periodt β
π¦ DESCRIPTION π¦
So this function is called for setting next_active_frame for a periodic transfer for all cases other than midway through a periodic split. It also updates start_active_frame, because of course it does π
Since we always keep start_active_frame as the start of the previous transfer, this is normally pretty easy: we just add our interval to start_active_frame and weβve got our answer. Slay, honestly β¨
The tricks come into play if we miss. In that case weβll look for the next slot we can fit into π
π₯ RETURN π₯
Returns the number missed by β or 0 if we didnβt miss. Simple as that, bestie π
π SEE ALSO π
- 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_check_max_xfer_size(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_hcd_qtd_init(9)dwc2_hcd_qtd_add(9)
thatβs the whole page, bestie β source/version: ./drivers/usb/dwc2; date: October 2026. go off, kernel icon ππ
π¦ 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