dwc2_next_periodic_start(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈


that’s the whole page, bestie β€” source/version: ./drivers/usb/dwc2; date: October 2026. go off, kernel icon πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from