io_uring_get_events(3)
β¨ io_uring_get_events β flush outstanding requests to CQE ring β¨
okay bestie, welcome to io_uring_get_events(3), straight out of the liburing manual π this one is short and sweet but it's lowkey important so don't skip it π«Ά
πΈ SYNOPSIS πΈ
#include <liburing.h>
int io_uring_get_events(struct io_uring *ring);
π DESCRIPTION π
so what does io_uring_get_events(3) actually do? it runs outstanding work and flushes completion events to the CQE ring. that's the whole vibe. it's giving "cleanup era" β¨
now, when do you even have stuff needing to be flushed? two iconic scenarios, bestie:
- if the ring was full and had overflowed, there can be events just... sitting there, waiting to be flushed π
- OR, if the ring was set up with the
IORING_SETUP_DEFER_TASKRUNflag, then this function will process outstanding tasks, which can possibly result in more CQEs showing up π
so yeah β deferred taskrun girlies, this is your moment. no cap. π
π RETURN VALUE π
- success β returns
0. slay. π - failure β returns
-errno. not slay. π
π¦ SEE ALSO π¦
and that's the page, bestie!! π this was liburing-2.3, dated September 5, 2022 β yeah she's been around a minute but she still eats π
go flush those events, you're doing amazing sweetie π«Άβ¨
π¦ 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
- π the page's license: LGPL-2.0-or-later
- Copyright (C) 2022 Dylan Yudaken
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms