1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
.\" Copyright (C) 2022 Christian Hergert <chergert@redhat.com>
.\"
.\" SPDX-License-Identifier: LGPL-2.0-or-later
.\"
.TH io_uring_check_version 3 "December 1, 2022" "liburing-2.4" "liburing Manual"
.SH NAME
io_uring_check_version \- functions and macros to check the liburing version
.SH SYNOPSIS
.nf
.B #include <liburing.h>
.PP
.BI "bool io_uring_check_version(int " major ", int " minor ");"
.BI "IO_URING_CHECK_VERSION(" major ", " minor ");"
.PP
.BI "int io_uring_major_version(void);"
.BI "IO_URING_VERSION_MAJOR;"
.PP
.BI "int io_uring_minor_version(void);"
.BI "IO_URING_VERSION_MINOR;"
.fi
.SH DESCRIPTION
.PP
The
.BR io_uring_check_version (3)
function returns
.I false
if the liburing library loaded by the dynamic linker is greater-than
or equal-to the
.I major
and
.I minor
numbers provided.
.PP
The
.BR IO_URING_CHECK_VERSION (3)
macro returns
.I 0
if the liburing library being compiled against is greater-than or equal-to the
.I major
and
.I minor
numbers provided.
.PP
The
.BR io_uring_major_version (3)
function returns the
.I major
version number of the liburing library loaded by the dynamic linker.
.PP
The
.BR IO_URING_VERSION_MAJOR (3)
macro returns the
.I major
version number of the liburing library being compiled against.
.PP
The
.BR io_uring_minor_version (3)
function returns the
.I minor
version number of the liburing library loaded by the dynamic linker.
.PP
The
.BR IO_URING_VERSION_MINOR (3)
macro returns the
.I minor
version number of the liburing library being compiled against.
|