io_uring_cqe_seen(3)
π 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 β
io_uring_submit(3)io_uring_peek_cqe(3)io_uring_wait_cqe(3)io_uring_wait_cqes(3)io_uring_wait_cqe_timeout(3)
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
- alpine 3.22: liburing-doc 2.9-r0 Β· LGPL-2.1-or-later OR MIT
- alpine 3.23: liburing-doc 2.12-r0 Β· LGPL-2.1-or-later OR MIT
- alpine 3.24: liburing-doc 2.14-r0 Β· LGPL-2.1-or-later OR MIT
- arch rolling: liburing 2.15-1 Β· GPL-2.0-only WITH Linux-syscall-note OR MIT AND LGPL-2.0-or-later AND MIT
- centos-stream 10: liburing-devel 2.12-1.el10 Β· (GPLv2 with exceptions and LGPLv2+) or MIT
- centos-stream 9: liburing-devel 2.12-1.el9 Β· (GPLv2 with exceptions and LGPLv2+) or MIT
- centos-stream 9: liburing-devel 2.12-1.el9 Β· (GPLv2 with exceptions and LGPLv2+) or MIT
- debian trixie: liburing-dev 2.9-1
- fedora 43: liburing-devel 2.9-2.fc43 Β· (GPL-2.0-only WITH Linux-syscall-note OR MIT) AND (LGPL-2.0-or-later OR MIT)
- fedora 43: liburing-devel 2.9-2.fc43 Β· (GPL-2.0-only WITH Linux-syscall-note OR MIT) AND (LGPL-2.0-or-later OR MIT)
- fedora 44: liburing-devel 2.13-2.fc44 Β· (GPL-2.0-only WITH Linux-syscall-note OR MIT) AND (LGPL-2.0-or-later OR MIT)
- fedora 44: liburing-devel 2.13-2.fc44 Β· (GPL-2.0-only WITH Linux-syscall-note OR MIT) AND (LGPL-2.0-or-later OR MIT)
- nixpkgs unstable: liburing 2.14
- opensuse-leap 16.0: liburing-devel 2.8-160000.3.1 Β· (GPL-2.0-only AND LGPL-2.1-or-later) OR MIT
- opensuse-leap 16.0: liburing-devel 2.8-160000.3.1 Β· (GPL-2.0-only AND LGPL-2.1-or-later) OR MIT
- opensuse-leap 16.0: liburing-devel 2.8-160000.3.1 Β· (GPL-2.0-only AND LGPL-2.1-or-later) OR MIT
- opensuse-leap 16.0: liburing-devel 2.8-160000.3.1 Β· (GPL-2.0-only AND LGPL-2.1-or-later) OR MIT
- ubuntu noble: liburing-dev 2.5-1build1
- ubuntu questing: liburing-dev 2.11-1
- ubuntu resolute: liburing-dev 2.14-1
- ubuntu stonking: liburing-dev 2.15-1
- π the page's license: LGPL-2.0-or-later
- Copyright (C) 2021 Stefan Roesch <shr@fb.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms