io_uring_sqring_wait(3)
β¨ io_uring_sqring_wait β¨
okay bestie, we're in the liburing manual and today's main character is io_uring_sqring_wait(3) π
π NAME π
io_uring_sqring_wait β the girl who waits for free space in the SQ ring. yes she's patient. yes she's iconic. periodt.
πΈ SYNOPSIS πΈ
#include <liburing.h>
int io_uring_sqring_wait(struct io_uring *ring);
π¦ DESCRIPTION π¦
so, io_uring_sqring_wait(3) lets whoever's calling it wait for space to free up in the SQ ring that belongs to the ring param π«Ά and likeβ¦ when does that space free up? when the kernel side thread has consumed one or more entries. that's the whole tea β
and if the SQ ring is currently non-full? no action is taken. she's not gonna make you wait for nothing, she's not that kind of girl π
ngl this feature is lowkey exclusive β you can only use it when the ring has been setup with IORING_SETUP_SQPOLL, meaning it's using an offloaded approach to request submissions. no SQPOLL, no sqring_wait. it's giving vip list ποΈ
π RETURN VALUE π
on success it returns the free space β¨
if the kernel does not support the feature, -EINVAL is returned π (not her fault, the kernel just wasn't ready for her)
π SEE ALSO π
and that's the whole page, bestie π this was liburing-2.1, dated January 25, 2022 β slay, bye, go wait on your SQ ring responsibly π§β
π¦ 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 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