Sha256: 74c1dca37c79e2a117fb0cc61d5f101156a55388c637cfd094a22d8c7d55a906

Contents?: true

Size: 1.71 KB

Versions: 13

Compression:

Stored size: 1.71 KB

Contents

.\" Copyright (C) 2022 Jens Axboe <axboe@kernel.dk>
.\"
.\" SPDX-License-Identifier: LGPL-2.0-or-later
.\"
.TH io_uring_register_sync_cancel 3 "September 21, 2022" "liburing-2.3" "liburing Manual"
.SH NAME
io_uring_register_sync_cancel \- issue a synchronous cancelation request
.SH SYNOPSIS
.nf
.B #include <liburing.h>
.PP
.BI "int io_uring_register_sync_cancel(struct io_uring *" ring ",
.BI "                                  struct io_uring_sync_cancel_reg *" reg ");
.PP
.SH DESCRIPTION
.PP
The
.BR io_uring_register_sync_cancel (3)
function performs a synchronous cancelation request based on the parameters
specified in
.I reg .

The
.I reg
argument must be filled in with the appropriate information for the
cancelation request. It looks as follows:
.PP
.in +4n
.EX
struct io_uring_sync_cancel_reg {
    __u64 addr;
    __s32 fd;
    __u32 flags;
    struct __kernel_timespec timeout;
    __u64 pad[4];
};
.EE
.in
.PP

The arguments largely mirror what the async prep functions support, see
.BR io_uring_prep_cancel (3)
for details. Similarly, the return value is the same. The exception is the
.I timeout
argument, which can be used to limit the time that the kernel will wait for
cancelations to be successful. If the
.I tv_sec
and
.I tv_nsec
values are set to anything but
.B -1UL ,
then they indicate a relative timeout upon which cancelations should be
completed by.

The
.I pad
values must be zero filled.

.SH RETURN VALUE
See
.BR io_uring_prep_cancel (3)
for details on the return value. If
.I timeout
is set to indicate a timeout, then
.B -ETIME
will be returned if exceeded. If an unknown value is set in the request,
or if the pad values are not cleared to zero, then
.I -EINVAL
is returned.
.SH SEE ALSO
.BR io_uring_prep_cancel (3)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
polyphony-1.0.1 vendor/liburing/man/io_uring_register_sync_cancel.3
polyphony-1.0 vendor/liburing/man/io_uring_register_sync_cancel.3
polyphony-0.99.6 vendor/liburing/man/io_uring_register_sync_cancel.3
polyphony-0.99.5 vendor/liburing/man/io_uring_register_sync_cancel.3
polyphony-0.99.4 vendor/liburing/man/io_uring_register_sync_cancel.3
polyphony-0.99.3 vendor/liburing/man/io_uring_register_sync_cancel.3
polyphony-0.99.2 vendor/liburing/man/io_uring_register_sync_cancel.3
polyphony-0.99.1 vendor/liburing/man/io_uring_register_sync_cancel.3
polyphony-0.99 vendor/liburing/man/io_uring_register_sync_cancel.3
polyphony-0.98 vendor/liburing/man/io_uring_register_sync_cancel.3
polyphony-0.97 vendor/liburing/man/io_uring_register_sync_cancel.3
polyphony-0.96 vendor/liburing/man/io_uring_register_sync_cancel.3
polyphony-0.95 vendor/liburing/man/io_uring_register_sync_cancel.3