usb_gadget_c..._selfpowered(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to usb_gadget_c..._selfpowered(9) in the Kernel API Manual. today's main character is usb_gadget_clear_selfpowered β€” the function that clears the device selfpowered feature. it's giving tiny-but-iconic USB gadget business, and we're keeping every single detail intact. πŸ’…βœ¨

πŸŽ€ NAME πŸŽ€

usb_gadget_clear_selfpowered β€” clear the device selfpowered feature.

like, that's the whole NAME section. short, sweet, no cap. it clears the device selfpowered feature and we move. πŸ’–

✨ SYNOPSIS ✨

the signature, exactly as it appears:

int usb_gadget_clear_selfpowered (struct usb_gadget *gadget );

🫢 ARGUMENTS 🫢

one argument, bestie:

  • gadget β€” the device being declared as bus-powered.

🌸 DESCRIPTION 🌸

okay so here's the vibe: this affects the device status reported by the hardware driver. some hardware may not support bus-powered operation, in which case this feature's value can never change. that's the hardware's whole lane, and the value is locked in like that. πŸ™ˆ

and the return? zero on success, else negative errno. that's it β€” no extra lore, no secret side quest. periodt. πŸ’€

🌈 SEE ALSO 🌈

the whole USB gadget friend group is here β€” go say hi, iykyk 🫢:


xoxo, source/version ./drivers/usb/gadget/udc, date October 2026, from your bestie on the usb_gadget_c..._selfpowered(9) page. slay responsibly, fr fr πŸ’–βœ¨

πŸ“¦ where this page comes from