usb_poison_anchored_urbs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– usb_poison_anchored_urbs(9) πŸ’–

okay so this is a page straight out of the Kernel API Manual, and bestie, it's literally about telling a whole pile of URBs to stop talking. no cap. let's get into it 🫢


✨ NAME ✨

usb_poison_anchored_urbs β€” cease all traffic from an anchor πŸ’…

like, imagine an anchor full of requests and you just go "nope, we're done here" and poison the whole vibe. iconic.


πŸ¦‹ SYNOPSIS πŸ¦‹

void usb_poison_anchored_urbs (struct usb_anchor *anchor );

that's it. one argument. she's lowkey minimal. ✨


🌸 ARGUMENTS 🌸

  • anchor β€” the anchor that the requests are bound to. yes, this exact anchor. the one you're poisoning. main character energy, fr.

πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea β˜• β€” this lets all outstanding URBs get poisoned, and it starts from the back of the queue and works its way forward. newly added URBs? yeah, they get poisoned too. no escape. not me showing up late and still getting caught in the crossfire 😭

⚠️ okay this part is important, do NOT skip: this routine should not be called by a driver after its disconnect method has returned. like, genuinely. don't. that's the rule. 🚨

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./drivers/usb/core/urb.c, and here's the whole friend group πŸ’–:


and that's the whole page, bestie! 🧚 it's filed under ./drivers/usb/core and dated October 2026 β€” go forth and poison responsibly πŸ’œβ­

πŸ“¦ where this page comes from