io_uring_sq_ready(3)
io_uring_sq_ready π β¨
okay bestie, so this is a page from the liburing manual (that's the userspace crew for io_uring, iykyk), and it's literally just one tiny little function that tells you how much stuff is still chillin' in your submission queue. that's it. that's the whole vibe. π
β¨ NAME β¨
io_uring_sq_ready β the number of unconsumed or unsubmitted entries in the SQ ring π¦
πΈ SYNOPSIS πΈ
#include <liburing.h>
unsigned io_uring_sq_ready(const struct io_uring *ring);
π DESCRIPTION π
so the io_uring_sq_ready(3) function returns the number of unconsumed (that's the SQPOLL case, hold on) or unsubmitted entries that exist in the SQ ring belonging to the ring param. like, how many requests are sitting there waiting for their moment. main character energy, but make it a queue. π
now the important part, and I mean IMPORTANT:
usage of this function only applies if the ring has been setup with IORING_SETUP_SQPOLL, where request submissions β and therefore consumption from the SQ ring β happens through a polling thread. no SQPOLL, no relevance, periodt. π«Ά
β RETURN VALUE β
returns the number of unconsumed or unsubmitted entries in the SQ ring. that's the number, that's the tea, that's the whole return. π
π SEE ALSO π
io_uring_cq_ready(3)β go read that one too bestie, it's the completion queue counterpart and it ate π
okay that's the page!! this one comes from liburing-2.1 and it's dated January 25, 2022 β a whole little time capsule, iconic of it honestly. love u, go check your SQ ring, mwah ππ§
π¦ 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