io_uring_cqe_seen(3)

πŸ“¦
version 2.15 Β· 2 versions
  • 2.15 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 2.3 Β· debian bookworm
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– io_uring_cqe_seen β€” mark io_uring completion event as consumed πŸ’–

okay bestie, welcome to the liburing manual, this one's short and sweet and honestly kind of a queen for it.


✨ NAME ✨

io_uring_cqe_seen β€” mark an io_uring completion event as consumed πŸŽ€


🌸 SYNOPSIS 🌸

#include <liburing.h>

void io_uring_cqe_seen(struct io_uring *ring,
                       struct io_uring_cqe *cqe);

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way this works: io_uring_cqe_seen(3) marks the IO completion cqe that belongs to the ring param as consumed. that's it. that's the whole job. iconic honestly πŸ’…

here's the flow, bestie. after the caller has submitted a request with io_uring_submit(3), the application can grab the completion with io_uring_wait_cqe(3), io_uring_peek_cqe(3), or literally any of the other CQE retrieval helpers β€” and then it marks that completion as consumed with io_uring_cqe_seen(3). full circle, main character energy ✨

and this part matters, no cap: completions must be marked as completed so their slot can get reused. skip this and you're just hoarding slots, and nobody wants that 🫢

πŸ’œ RETURN VALUE πŸ’œ

None. zero. nothing. it's giving void and she's thriving 🌈


⭐ SEE ALSO ⭐


and that's the whole page, bestie πŸ“ this one came from liburing-2.1, dated November 15, 2021 β€” go mark those completions as seen, periodt πŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from