usb_ep_set_wedge(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so real talk, you're reading the page for usb_ep_set_wedge(9) out of the Kernel API Manual, and honestly? it's a whole mood. it's short, it's spicy, it's giving "small function, big attitude." let's get into it πŸŽ€


✨ NAME ✨

usb_ep_set_wedge β€” sets the halt feature and ignores clear requests 🫢

like bestie, it does NOT want to hear your CLEAR_FEATURE requests. it said what it said.


🌸 SYNOPSIS 🌸

int usb_ep_set_wedge (struct usb_ep *ep );

yes, that's the whole signature. one int out, one endpoint in. simple. iconic. periodt.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ep β€” the endpoint being wedged πŸ’€ that's the one you're about to make immovable, fr fr.

🧚 DESCRIPTION 🧚

Use this to stall an endpoint and ignore CLEAR_FEATURE(HALT_ENDPOINT) requests. that's the entire point. you're not just stalling it, you're putting it on do-not-disturb. πŸ™ˆ

but here's the tea β€” if the gadget driver clears the halt status, it will automatically unwedge the endpoint. so like, you're not trapping it forever, someone with the right keys can still let it out. slay ✨

This routine may be called in interrupt context. no cap, that's allowed. πŸ”₯

Returns zero on success, else negative errno. so check that return value, bestie, don't just vibe past it 😭


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/usb/gadget/udc/core.c β€” that's where the magic lives, iykyk. and the rest of the USB gadget squad, in all their glory:


and that's the whole page, bestie πŸ’– this one came out of the ./drivers/usb/gadget/udc directory, dated October 2026, and it's filed under usb_ep_set_wedge(9). go wedge something responsibly πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from