dwc2_restor...ce_registers(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dwc2_restore_device_registers(9) πŸ’…

okay bestie, welcome to the Kernel API Manual entry for dwc2_restore_device_registers β€” the header gets cutely squished as dwc2_restor...ce_registers(9), but we know her full name. ✨

πŸ’– NAME πŸ’–

dwc2_restore_device_registers β€” Restore controller device registers. When resuming usb bus, device registers needs to be restored if controller power were disabled. it's giving "wake up babe, we're restoring the controller's device registers" energy.


🌸 SYNOPSIS 🌸

bestie, here's the exact signature β€” don't let the line break fool you, this is the whole thing:

int dwc2_restore_device_registers (struct dwc2_hsotg *hsotg , unsigned
int flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • hsotg β€” Programming view of the DWC_otg controller. main-character struct, iykyk.
  • flags β€” Defines which registers should be restored. literally the "which ones, bestie?" parameter.

✨ RETURN ✨

Returns 0 if successful, negative error code otherwise. slay when it's zero; negative means something went sideways, no cap.

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./drivers/usb/dwc2/gadget.c is the home base, and here's the whole squad of references β€” every single one, periodt:


catch you later, bestie β€” the footer source/version is ./drivers/usb/dwc2 and the date is October 2026 πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from