io_uring_prep_poll_remove(3)

πŸ’… io_uring_prep_poll_remove β€” the liburing manual, bestie edition πŸ’…

okay so you're here for io_uring_prep_poll_remove(3) from the liburing Manual, and honestly? iconic of you. sit down, hydrate, let's go πŸ“


✨ NAME ✨

io_uring_prep_poll_remove β€” prepare a poll deletion request πŸ—‘οΈ

like... you're deleting a poll. bye bestie, you're cancelled (literally).


✨ SYNOPSIS ✨

#include <liburing.h>

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

✨ DESCRIPTION ✨

so the io_uring_prep_poll_remove(3) function prepares a poll removal request, periodt. the submission queue entry sqe gets set up to remove a poll request that's identified by user_data 🎯

it works exactly like io_uring_prep_cancel(3) β€” the way that it's the same function energy β€” except it only looks for poll requests. that's the one and only difference. apart from that, the behavior is identical, no cap. so go read that man page for the specific details, iykyk πŸ‘‘


✨ RETURN VALUE ✨

None. nothing. zero. it's giving void πŸ«₯


✨ ERRORS ✨

these are the errors that get reported in the CQE res field, bestie. on success, 0 is returned πŸ’–

  • -ENOENT β€” the request identified by user_data could not be located 😭 this could be because it completed before the cancelation request was even issued, or because an invalid identifier got used. rude of it, honestly.
  • -EINVAL β€” one of the fields set in the SQE was invalid. πŸ’€ invalid field, invalid vibe.
  • -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. so like... it's already main character-ing its way to the finish line, you can't stop it now πŸƒβ™€οΈβœ¨

✨ SEE ALSO ✨


πŸ¦‹ mwah πŸ¦‹ this page was brought to you by liburing-2.2, dated March 12, 2022 β€” love her, respect her, she's been serving since day one πŸ’œπŸ‘‘

πŸ“¦ where this page comes from