io_uring_sub...d_get_events(3)
β¨ io_uring_submit_and_get_events β¨
okay bestie, you're in the liburing manual β the io_uring_sub...d_get_events(3) page, to be exact π
she's a long name, she's a lot, but she's worth it, fr fr.
πΈ NAME πΈ
io_uring_submit_and_get_events β she submits your requests to the submission queue and flushes your completions, all in one go π¦
π SYNOPSIS π
#include <liburing.h>
int io_uring_submit_and_get_events(struct io_uring *ring);
π DESCRIPTION π
so like, the way that io_uring_submit_and_get_events(3) works is: it submits the next events to the submission queue, exactly like io_uring_submit(3) does. then, right after submission, it flushes the CQEs just like io_uring_get_events(3). two besties, one function π«Ά
and the benefit?? THE benefit?? she does both of those things with only one system call β¨ lowkey iconic, highkey efficient, no cap.
π RETURN VALUE π
- On success,
io_uring_submit_and_get_events(3)returns the number of submitted submission queue entries. slay π - On failure, it returns
-errnoπ
π¦ SEE ALSO π¦
and that's the whole page, bestie!! this was pulled straight out of liburing-2.3, dated September 5, 2022 β go submit something and flush it, you got this πβ¨π
π¦ 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 bookworm: liburing-dev 2.3-3
- 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms