gadget_is_dualspeed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gadget_is_dualspeed(9) β€” a page from the Kernel API Manual ✨

okay so bestie, this one is genuinely tiny but it slaps πŸŽ€ it's a function from the Kernel API Manual that answers one very specific yes-or-no question for you, and honestly? iconic behaviour.


🌸 NAME 🌸

gadget_is_dualspeed β€” returns true iff the hardware handles high speed πŸ’«

like, "iff" is math-girl speak for "if and only if", so it's not maybe true, it's true exactly when the hardware can do the high-speed thing. no cap.


✨ SYNOPSIS ✨

int gadget_is_dualspeed (struct usb_gadget *g );

that's it. that's the whole vibe check πŸ¦‹


🫢 ARGUMENTS 🫢

  • g β€” the controller that might support both high and full speeds πŸ‘€ literally the little guy you're asking about. "might" is doing a lot of work here, so bestie, that's why we call the function instead of just assuming πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr β€” all of these live in the kernel file ./include/linux/usb/gadget.h πŸ“ and honestly the way this list goes on… main character energy:

like I said. the entire group chat. go read them, iykyk πŸ’–


πŸŽ€ sign-off πŸŽ€

this cutie lives under ./include/linux/usb, dated October 2026, and it's filed as gadget_is_dualspeed(9) in case you need to find it again β€” slay, go check your gadget's speed, and drink some water πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from