dwc2_hcd_qh_unlink(9)
π dwc2_hcd_qh_unlink(9)
okay bestie, welcome to the Kernel API Manual β¨ this one is short and sweet and honestly kind of a baddie β no cap.
πΈ NAME πΈ
dwc2_hcd_qh_unlink β Removes a QH from either the non-periodic or periodic schedule. Memory is not freed.
π«Ά read that last sentence again. Memory is not freed. this function just unlinks, it does not clean up. do not come for me later saying I didn't warn you π
β¨ SYNOPSIS β¨
void dwc2_hcd_qh_unlink (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh
);
it's giving "small function, big responsibilities" honestly π
π ARGUMENTS π
hsotgβ The HCD state structure π this is the main-character struct, the whole vibe of the host controller lives in here.qhβ QH to remove from schedule βοΈ this is the queen being unlinked from the schedule. she's leaving, but her memory is staying (see above, fr fr).
π¦ SEE ALSO π¦
the whole friend group, no one left out π«Ά the kernel file lives at ./drivers/usb/dwc2/hcd_queue.c:
dwc2_periodic_channel_available(9)dwc2_check_periodic_bandwidth(9)pmap_schedule(9)pmap_unschedule(9)dwc2_get_ls_map(9)dwc2_qh_print(9)dwc2_qh_schedule_print(9)dwc2_ls_pmap_schedule(9)dwc2_ls_pmap_unschedule(9)dwc2_hs_pmap_schedule(9)dwc2_hs_pmap_unschedule(9)dwc2_uframe_schedule_split(9)dwc2_uframe_schedule_hs(9)dwc2_uframe_schedule_ls(9)dwc2_uframe_schedule(9)dwc2_uframe_unschedule(9)dwc2_pick_first_frame(9)dwc2_do_reserve(9)dwc2_do_unreserve(9)dwc2_unreserve_timer_fn(9)dwc2_check_max_xfer_size(9)dwc2_schedule_periodic(9)dwc2_deschedule_periodic(9)dwc2_wait_timer_fn(9)dwc2_qh_init(9)dwc2_hcd_qh_create(9)dwc2_hcd_qh_free(9)dwc2_hcd_qh_add(9)dwc2_next_for_periodic_split(9)dwc2_next_periodic_start(9)dwc2_hcd_qtd_init(9)dwc2_hcd_qtd_add(9)
like, the entire hcd_queue.c cast list π they all ate, periodt. if you're going on a wiki-walk through the dwc2 queueing code, this is your map πΊοΈβ¨
π friendly reminder one more time: this function Removes a QH from either the non-periodic or periodic schedule. Memory is not freed. go call something else for that, bestie.
and that's the whole page, you're done, slay ππ this lil gem came out of ./drivers/usb/dwc2 and was stamped October 2026 β see you in the next manpage, mwah ππ·
π¦ 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