dwc2_pick_first_frame(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to dwc2_pick_first_frame(9) from the Kernel API Manual πŸ’– this page is short, sweet, and it’s giving β€œscheduled qh gets its first frame picked” energy.


✨ NAME ✨

dwc2_pick_first_frame β€” choose the 1st frame for a qh that’s already scheduled πŸ’…


🌸 SYNOPSIS 🌸

void dwc2_pick_first_frame (struct dwc2_hsotg *hsotg , struct dwc2_qh
       *qh );

πŸŽ€ ARGUMENTS πŸŽ€

  • hsotg β€” the HCD state structure for the DWC OTG controller, periodt 🫢
  • qh β€” the QH for a periodic endpoint, bestie 🌟

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function takes a qh that has already been scheduled β€” which means we know we have the bandwidth reserved for us, no cap β€” and it sets next_active_frame and start_active_frame. πŸ’–

It’s expected to be called on qh’s that weren’t previously actively running. It just picks the next frame that we can fit into, without any thought about the past. literally no baggage, just frame-picking main character energy ✨


πŸ’œ SEE ALSO πŸ’œ

Kernel file: ./drivers/usb/dwc2/hcd_queue.c πŸ‘‘


That’s the whole page, bestie! Cute lil sign-off: source/version is ./drivers/usb/dwc2, dated October 2026, and this iconic lil manual page is dwc2_pick_first_frame(9). Bye, go pick that first frame and slay πŸ’…βœ¨

πŸ“¦ where this page comes from