dwc2_hsotg_set_selfpowered(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 dwc2_hsotg_set_selfpowered(9) β€” Kernel API Manual 🌸

okay bestie, welcome to the dwc2_hsotg_set_selfpowered(9) page from the Kernel API Manual β€” it’s giving tiny-but-important USB gadget energy, and we’re gonna read it together. πŸ’…


✨ NAME ✨

dwc2_hsotg_set_selfpowered β€” set if device is self/bus powered

✨ SYNOPSIS ✨

int dwc2_hsotg_set_selfpowered (struct usb_gadget *gadget , int
       is_selfpowered );

πŸŽ€ ARGUMENTS πŸŽ€

  • gadget β€” the usb gadget state, fr fr.
  • is_selfpowered β€” whether the device is self-powered.

πŸ’– DESCRIPTION πŸ’–

okay so this one sets whether the device is self-powered or bus-powered. That’s the whole assignment, bestie: set if the device is self or bus powered. periodt. ✨

πŸ“š SEE ALSO πŸ“š

Kernel file ./drivers/usb/dwc2/gadget.c, plus the whole friend group:


xoxo, your kernel bestie 🫢 β€” this little icon came from source/version ./drivers/usb/dwc2, dated October 2026, in the Kernel API Manual, page dwc2_hsotg_set_selfpowered(9). slay. πŸ’–

πŸ“¦ where this page comes from