summaryrefslogtreecommitdiff
path: root/man/io_uring_opcode_supported.3
blob: 8afbfc6df10c42ee22c2b16ca3b949fdaec29b9f (plain)
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
.\" Copyright (C) 2022 Stefan Roesch <shr@fb.com>
.\"
.\" SPDX-License-Identifier: LGPL-2.0-or-later
.\"
.TH io_uring_opcode_supported "January 25, 2022" "liburing-2.1" "liburing Manual"
.SH NAME
io_uring_opcode_supported - is op code supported?
.SH SYNOPSIS
.nf
.BR "#include <liburing.h>"
.PP
.BI "int io_uring_opcode_supported(struct io_uring_probe *" probe ","
.BI "                              int " opode ");"
.fi
.PP
.SH DESCRIPTION
.PP
The function io_uring_opcode_supported() allows the caller to determine if
the passed in
.I opcode
belonging to the
.I probe
param is supported. An instance of the io_uring_probe instance can be
obtained by calling the function
.BR io_uring_get_probe (3).

.SH RETURN VALUE
On success it returns 1, otherwise it returns 0.
.SH SEE ALSO
.BR io_uring_get_probe (3)