io_uring_check_version(3)
β¨ io_uring_check_version(3) β the liburing Manual, bestie edition β¨
okay so. you ever load a library and just... not know what version you got? π« yeah. that's the vibe this whole page is about. these are the functions and macros that let you check the liburing version β the one you're linked against at runtime vs the one you're compiling against, which are lowkey not always the same thing, and that's the whole tea. π΅
πΈ NAME πΈ
io_uring_check_version β functions and macros to check the liburing version π
π¦ SYNOPSIS π¦
#include <liburing.h>
bool io_uring_check_version(int major, int minor);
IO_URING_CHECK_VERSION(major, minor);
int io_uring_major_version(void);
IO_URING_VERSION_MAJOR;
int io_uring_minor_version(void);
IO_URING_VERSION_MINOR;
π DESCRIPTION π
okay bestie, there's six things here and they all come in pairs: a runtime version (the library the dynamic linker actually loaded) and a compile-time version (the one you're building against). know the difference, it's giving main character energy. π
io_uring_check_version(3)β returnsfalseif the liburing library loaded by the dynamic linker is greater-than or equal-to the major and minor numbers you passed in. so yeah,falsehere is actually the good news, don't panic πIO_URING_CHECK_VERSION(3)β the macro twin π returns0if the liburing library being compiled against is greater-than or equal-to the major and minor numbers you passed in.io_uring_major_version(3)β returns the major version number of the liburing library loaded by the dynamic linker. runtime, bb. β¨IO_URING_VERSION_MAJOR(3)β returns the major version number of the liburing library being compiled against. compile-time, bb. πio_uring_minor_version(3)β returns the minor version number of the liburing library loaded by the dynamic linker. runtime again, the sequel. π¦IO_URING_VERSION_MINOR(3)β returns the minor version number of the liburing library being compiled against. compile-time again, the sequel's sequel. πΈ
not me reminding you that "loaded by the dynamic linker" and "being compiled against" are two different libraries sometimes, and that's exactly why these six exist. iykyk. π
that's the whole page, no cap. go check your versions, you icon. π«Ά
mwah π this was brought to you by liburing-2.4, dated December 1, 2022, and it's still slaying in io_uring_check_version(3).
π¦ 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 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 Christian Hergert <chergert@redhat.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms