io\_uring\_prep\_poll\_remove(3) liburing Manual io\_uring\_prep\_poll\_remove(3)

# [NAME](#NAME)

io\_uring\_prep\_poll\_remove - prepare a poll deletion request

# [SYNOPSIS](#SYNOPSIS)

```
#include <liburing.h>
```

```
void io_uring_prep_poll_remove(struct io_uring_sqe *sqe,
                               __u64 user_data);
```

# [DESCRIPTION](#DESCRIPTION)

The [**io\_uring\_prep\_poll\_remove**(3)](/man/os/liburing/io_uring_prep_poll_remove.3) function prepares a poll removal request. The submission queue entry *sqe* is setup to remove a poll request identified by *user\_data*

Works like [**io\_uring\_prep\_cancel**(3)](/man/os/liburing/io_uring_prep_cancel.3) except only looks for poll requests. Apart from that, behavior is identical. See that man page for specific details.

# [RETURN VALUE](#RETURN_VALUE)

None

# [ERRORS](#ERRORS)

These are the errors that are reported in the CQE *res* field. On success, **0** is returned.

[**-ENOENT**](#ENOENT)

The request identified by *user\_data* could not be located. This could be because it completed before the cancelation request was issued, or if an invalid identifier is used.

[**-EINVAL**](#EINVAL)

One of the fields set in the SQE was invalid.

[**-EALREADY**](#EALREADY)

The execution state of the request has progressed far enough that cancelation is no longer possible. This should normally mean that it will complete shortly, either successfully, or interrupted due to the cancelation.

# [SEE ALSO](#SEE_ALSO)

[**io\_uring\_get\_sqe**(3)](/man/os/liburing/io_uring_get_sqe.3), [**io\_uring\_submit**(3)](/man/os/liburing/io_uring_submit.3), [**io\_uring\_prep\_cancel**(3)](/man/os/liburing/io_uring_prep_cancel.3)

March 12, 2022 liburing-2.2

---

Document: io_uring_prep_poll_remove(3) from liburing 2.15-r4 (Chainguard OS)
Source: https://github.com/axboe/liburing.git
