io_uring_check_version(3)

πŸ“¦
version 2.15 Β· 2 versions
  • 2.15 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 2.5 Β· ubuntu noble
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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) β€” returns false if the liburing library loaded by the dynamic linker is greater-than or equal-to the major and minor numbers you passed in. so yeah, false here is actually the good news, don't panic 😭
  • IO_URING_CHECK_VERSION(3) β€” the macro twin πŸ’– returns 0 if 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