io_uring_unregister_buf_ring(3)

✨ io_uring_unregister_buf_ring ✨

okay so bestie, we're deep in the liburing Manual rn and this one is a certified banger of a cleanup function πŸ’– it's page io_uring_unregister_buf_ring(3) and honestly? it's giving "tidying up after the party" energy πŸŽ€


🌸 NAME 🌸

io_uring_unregister_buf_ring β€” unregister a previously registered buffer ring πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <liburing.h>

int io_uring_unregister_buf_ring(struct io_uring *ring,
                                 int bgid);

πŸ’œ DESCRIPTION πŸ’œ

so the way that this works is β€” io_uring_unregister_buf_ring(3) unregisters a previously registered shared buffer ring, and that ring is indicated by bgid. that's it. that's the whole vibe 🫢

you registered it, you had your little moment with it, and now you're letting it go. closure! iconic! 😌✨


⭐ RETURN VALUE ⭐

  • on success, io_uring_unregister_buf_ring(3) returns 0 πŸ‘‘ slay
  • on failure, it returns -errno 😭 (negative errno, so like, read the sign bestie)

🌈 SEE ALSO 🌈

  • io_uring_register_buf_ring(3) β€” the register half of this situationship πŸ’ž
  • io_uring_buf_ring_free(3) β€” the freeing half, also a whole mood 🧚

ngl this is the unregister one, not the register one, not the free one. three different functions, three different jobs. don't mix them up fr fr πŸ’€

that's the whole page, bestie!! mwah πŸ“ this was liburing-2.2, dated May 18, 2022, and yes i'm obsessed with it. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from