usb_hcd_unlink_urb_from_ep(9)
π
usb_hcd_unlink_urb_from_ep(9) β Kernel API Manual β¨
okay so bestie, we're deep in the kernel API manual right now, and this page is literally about usb_hcd_unlink_urb_from_ep π¦ β yes the whole manual name is right there in the title, we're being professional about it, don't worry about it.
πΈ NAME πΈ
usb_hcd_unlink_urb_from_ep β remove an URB from its endpoint queue π«
β¨ SYNOPSIS β¨
void usb_hcd_unlink_urb_from_ep (struct usb_hcd *hcd , struct urb *urb
);
no cap, that's the whole signature. two pointers, no return value, she just does the thing π
π«Ά ARGUMENTS π«Ά
hcdβ the host controller thaturbwas submitted to. like, the specific one, okay? not vibes, an actual pointer πurbβ the URB that's being unlinked. that's the one we're yanking out of the queue π§
π₯ DESCRIPTION π₯
okay so listen up β host controller drivers should call this routine before calling usb_hcd_giveback_urb. like, this is the order, it's not a suggestion, it's giving prerequisites π
the HCD's private spinlock must be held and interrupts must be disabled. the way that this is non-negotiable... yeah. do not skip that part, i'm begging π
the actions carried out here are required for URB completion β so like, if you're wondering "can i just skip this and still complete my URB?", no bestie, that's the whole point of the function π
π SEE ALSO π
the kernel file lives at ./drivers/usb/core/hcd.c and honestly this whole friend group shows up together, so here's the full squad, no one left behind π«Ά
ascii2desc(9)rh_string(9)usb_bus_init(9)usb_register_bus(9)usb_deregister_bus(9)register_root_hub(9)usb_calc_bus_time(9)usb_hcd_link_urb_to_ep(9)usb_hcd_check_unlink_urb(9)usb_hcd_giveback_urb(9)usb_hcd_alloc_bandwidth(9)usb_hcd_reset_endpoint(9)usb_alloc_streams(9)usb_free_streams(9)usb_hcd_resume_root_hub(9)usb_bus_start_enum(9)usb_hcd_irq(9)usb_hc_died(9)usb_create_shared_hcd(9)usb_create_hcd(9)usb_stop_hcd(9)usb_add_hcd(9)usb_remove_hcd(9)
and that's the page babes π sign-off time: this one comes to you from ./drivers/usb/core, dated October 2026 β periodt, go hold that spinlock πβ¨
π¦ 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