dwc2_hcd_disconnect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dwc2_hcd_disconnect(9) β€” the Kernel API Manual page, bestie edition πŸŽ€

okay so this is a page from the Kernel API Manual (yes that's the manual name, we're not copying the header line, we're folding it in like a lil name tag at the party) and it's all about dwc2_hcd_disconnect, one of the USB DWC2 host controller driver girlies. let's get into it ✨


✨ NAME ✨

dwc2_hcd_disconnect β€” handles the disconnect of the HCD. that's it, that's the job. it shows up when the HCD gotta disconnect and it handles it, no cap πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

void dwc2_hcd_disconnect (struct dwc2_hsotg *hsotg , bool force );

like, it returns void (it gives nothing back, it's not about that life) and it takes two lil arguments. slay.

🌸 ARGUMENTS 🌸

  • hsotg β€” a pointer to struct dwc2_hsotg. it's giving "the main character struct" fr fr, everything gets passed through here.
  • force β€” a bool. if it's true, we won't try to reconnect even if we see a device connected. like we're being SO serious about leaving. no take-backs, we said what we said πŸ™ˆ

πŸŽ€ DESCRIPTION πŸŽ€

okay here's the important bit, bestie, and it is NOT optional:

must be called with interrupts disabled and the spinlock held. both. at the same time. this is a vibe check you cannot fail 😭

that's literally the whole description and honestly it's enough β€” respect the locking rules or the kernel will humble you. periodt.

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file is ./drivers/usb/dwc2/hcd.c and it's got a whole friend group, iykyk:


and that's the whole page, bestie, you ate that 🫢 go forth, hold that spinlock, disable those interrupts, and remember: this came from ./drivers/usb/dwc2, dated October 2026, and it lives at section dwc2_hcd_disconnect(9) forever and ever πŸ’– ✨ 🧚

πŸ“¦ where this page comes from