dwc2_gadget_...e_num_by_one(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dwc2_gadget_dec_frame_num_by_one(9) β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual entry for dwc2_gadget_dec_frame_num_by_one(9) β€” yes the title got truncated with ... in the header, that's just how the page is, we don't fix it, we respect it 🫢


🌸 NAME 🌸

dwc2_gadget_dec_frame_num_by_one β€” Decrements the targeted frame number by one.

That's it. That's the whole job. One (1) frame, gone, subtracted, poof πŸ’…


✨ SYNOPSIS ✨

void dwc2_gadget_dec_frame_num_by_one (struct dwc2_hsotg_ep *hs_ep );

Copy it exactly like that, spaces and all, no cap β€” the little space before the closing paren is part of the vibe, don't @ me 😌


πŸŽ€ ARGUMENTS πŸŽ€

  • hs_ep β€” the endpoint. that's literally the whole description. it's the endpoint. the one we're messing with. iconic of it to be that brief πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” this function shows up in the service interval based scheduling flow, and its whole entire job is to calculate the descriptor frame number field value. yes, "filed" is spelled like that in the original, we're keeping it, it's part of the lore πŸ™ˆ

and here's why it matters: in service interval mode, the frame number in the descriptor should point to the last (u)frame in the interval. that's the target. that's the assignment. so this function decrements that targeted frame number by one β€” hence the name, the name is honestly a slay for once πŸ’€βœ¨

lowkey a tiny little arithmetic gremlin doing one very specific subtract in a much bigger USB gadget machine, and we love her for it πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

First up, the home base β€” Kernel file:

  • ./drivers/usb/dwc2/gadget.c

and then the whole extended friend group, fr fr β€” every single one of these is (9) and yes you get all of them, sit down, we're going through the whole group chat 🫢

like, that's the whole squad. no gatekeeping here 🌈


real talk for one sec 🫢 β€” the only thing this page actually promises is the decrement and the service-interval framing thing. don't go reading extra behaviour into it, bestie, i'm just the messenger πŸ’€

✨ and that's the page, diva ✨ source path is ./drivers/usb/dwc2, dated October 2026 β€” mwah, go subtract a frame responsibly πŸ˜˜πŸ’–

πŸ“¦ where this page comes from