dwc2_hcd_qh_free_ddma(9)
π dwc2_hcd_qh_free_ddma β the Kernel API Manual page you've been waiting for π
okay so bestie, this is a page from the Kernel API Manual and honestly? it's a little cleanup queen moment. she's not the one doing the allocating, she's the one doing the freeing. very "you had your turn, now pack it up" energy. π
β¨ NAME β¨
dwc2_hcd_qh_free_ddma β frees a QH structure's Descriptor DMA related members. that's it, that's the job. she takes out the Descriptor-DMA trash and she does it thoroughly. π§Ήπ
πΈ SYNOPSIS πΈ
void dwc2_hcd_qh_free_ddma (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh );
void, no return value, no notes, she just does the thing and leaves. main character energy fr fr. β¨
π¦ ARGUMENTS π¦
hsotgβ The HCD state structure for the DWC OTG controller. like, the whole big picture state of the controller, the context, the vibes. πqhβ The QH to free. this is the actual one getting freed, the little guy we're saying bye to. π₯Ί
π DESCRIPTION π
okay so here's the tea: this function frees the descriptor list memory associated with the QH. that memory? gone. released. not your problem anymore. π
and here's the extra lil detail that i need you to not miss: if the QH is periodic and it's the last one, then she also frees the FrameList memory and disables periodic scheduling. so she's not just doing a one-and-done β she's lowkey checking the conditions first. conditional queen behavior. π§β¨
real talk though: this is teardown code, so if you're calling it you should actually know what's still holding on to qh. free the wrong thing and it's giving π β undefined behavior doesn't do vibes checks, she just crashes.
π SEE ALSO π
- Kernel file
./drivers/usb/dwc2/hcd_ddma.cβ that's where the girlies live, go read it iykyk π dwc2_hcd_qh_init_ddma(9)β the setup counterpart, the ~before~ to this ~after~ π«Άdwc2_hcd_start_xfer_ddma(9)β starting the transferdwc2_hcd_complete_xfer_ddma(9)β finishing the transfer
π sign-off π
and that's the page!! from ./drivers/usb/dwc2, dated October 2026 β so like, future-dated queen. π go free your QH, bestie, and slay responsibly. β¨ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms