empty_req_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… empty_req_queue β€” like, the Kernel API Manual page you didn't know you needed

okay so bestie, welcome to the Kernel API Manual entry for empty_req_queue(9), and yes this is a real function and yes it does exactly what it sounds like, we love a name that eats ✨


✨ NAME ✨

empty_req_queue β€” this API empties the request queue of an endpoint πŸ§ΉπŸ’–

like, it empties the queue. the request queue. of an endpoint. that's the whole gig, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

void empty_req_queue (struct pch_udc_ep *ep );

that's it, that's the function signature, void return, one argument, iconic behaviour honestly πŸ‘‘


🌸 ARGUMENTS 🌸

  • ep β€” a reference to the endpoint structure. that's your struct pch_udc_ep * bestie, the endpoint whose queue is about to get absolutely cleared out πŸ’…

πŸŽ€ SEE ALSO πŸŽ€

okay so this is the part where the manpage goes feral and lists basically the entire ./drivers/usb/gadget/udc/pch_udc.c extended universe 😭 settle in, we're going through the whole friend group:


🫢 lowkey the whole pch_udc.c cast showed up to this one. if you read all 101 of those you're genuinely the main character of the kernel, fr fr.

okay that's the whole page bestie, go empty some queues and slay πŸ’œ

this gem lives over in ./drivers/usb/gadget/udc, dated October 2026, and it's filed under empty_req_queue(9) β€” that's the whole footer, but make it cute πŸŽ€βœ¨

πŸ“¦ where this page comes from