ep_is_empty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ ep_is_empty(9) πŸŽ€

okay so bestie, welcome to ep_is_empty(9) from the Kernel API Manual β€” it’s the tiny endpoint vibe check that tells you if ep has byte ready for reading. it’s giving β€œis there tea in this FIFO or not” energy, and honestly? iconic πŸ’…


✨ NAME ✨

ep_is_empty β€” checks if ep has byte ready for reading

πŸ“œ SYNOPSIS πŸ“œ

int ep_is_empty (struct pxa_ep *ep );

🫢 ARGUMENTS 🫢

  • ep β€” udc endpoint

πŸ’– DESCRIPTION πŸ’–

if ep is the control endpoint, this checks if there are bytes in the control endpoint fifo. if ep is a data endpoint, this checks if bytes are ready for reading on the OUT endpoint.

it returns 0 if ep is not empty, 1 if ep is empty, and -EOPNOTSUPP if IN endpoint. that’s the whole little status report, no cap ✨

🌈 SEE ALSO 🌈

kernel file: ./drivers/usb/gadget/udc/pxa27x_udc.c β€” and here’s the whole bestie lineup:


okay that’s the page! source path is ./drivers/usb/gadget/udc, date is October 2026, and the star of the show is ep_is_empty(9) β€” periodt, bye bestie πŸ’–πŸ¦‹

πŸ“¦ where this page comes from