io_uring_queue_exit(3)
π io_uring_queue_exit β the cleanup queen π
okay bestie, this one's from the liburing Manual, and it's the breakup text your io_uring ring deserves β¨
β¨ NAME β¨
io_uring_queue_exit β tear down io_uring submission and completion queues π§Ήπ
πΈ SYNOPSIS πΈ
#include <liburing.h>
void io_uring_queue_exit(struct io_uring *ring);
π¦ DESCRIPTION π¦
so like. you know how io_uring_queue_init(3) sets everything up and gets your ring all cute and ready? π well io_uring_queue_exit(3) is the reverse β it releases all the resources that io_uring_queue_init(3) acquired and initialized. every single one. no crumbs left. periodt.
the way it does it, in order, because she's organized:
- first it unmaps the memory shared between the application and the kernel β like, that shared-memory situationship? over. βοΈ
- then it closes the io_uring file descriptor β door shut, lights off, bye π
and that's it. no return value, no drama, just a clean exit. genuinely iconic behaviour honestly.
π ngl bestie, if you don't call this, you're lowkey leaking that fd and that mapping. not a vibe. call the cleanup function. fr fr.
π«Ά RETURN VALUE π«Ά
None. literally nothing. she gives nothing back and that's the point π
β SEE ALSO β
written under the liburing-0.7 banner, dated July 10, 2020 β yeah she's vintage but she still ate π πβ¨
π¦ where this page comes from
- alpine 3.22: liburing-doc 2.9-r0 Β· LGPL-2.1-or-later OR MIT
- alpine 3.23: liburing-doc 2.12-r0 Β· LGPL-2.1-or-later OR MIT
- alpine 3.24: liburing-doc 2.14-r0 Β· LGPL-2.1-or-later OR MIT
- centos-stream 10: liburing-devel 2.12-1.el10 Β· (GPLv2 with exceptions and LGPLv2+) or MIT
- centos-stream 9: liburing-devel 2.12-1.el9 Β· (GPLv2 with exceptions and LGPLv2+) or MIT
- centos-stream 9: liburing-devel 2.12-1.el9 Β· (GPLv2 with exceptions and LGPLv2+) or MIT
- debian bookworm: liburing-dev 2.3-3
- debian trixie: liburing-dev 2.9-1
- fedora 43: liburing-devel 2.9-2.fc43 Β· (GPL-2.0-only WITH Linux-syscall-note OR MIT) AND (LGPL-2.0-or-later OR MIT)
- fedora 43: liburing-devel 2.9-2.fc43 Β· (GPL-2.0-only WITH Linux-syscall-note OR MIT) AND (LGPL-2.0-or-later OR MIT)
- fedora 44: liburing-devel 2.13-2.fc44 Β· (GPL-2.0-only WITH Linux-syscall-note OR MIT) AND (LGPL-2.0-or-later OR MIT)
- fedora 44: liburing-devel 2.13-2.fc44 Β· (GPL-2.0-only WITH Linux-syscall-note OR MIT) AND (LGPL-2.0-or-later OR MIT)
- nixpkgs unstable: liburing 2.14
- opensuse-leap 16.0: liburing-devel 2.8-160000.3.1 Β· (GPL-2.0-only AND LGPL-2.1-or-later) OR MIT
- opensuse-leap 16.0: liburing-devel 2.8-160000.3.1 Β· (GPL-2.0-only AND LGPL-2.1-or-later) OR MIT
- opensuse-leap 16.0: liburing-devel 2.8-160000.3.1 Β· (GPL-2.0-only AND LGPL-2.1-or-later) OR MIT
- opensuse-leap 16.0: liburing-devel 2.8-160000.3.1 Β· (GPL-2.0-only AND LGPL-2.1-or-later) OR MIT
- ubuntu noble: liburing-dev 2.5-1build1
- ubuntu questing: liburing-dev 2.11-1
- ubuntu resolute: liburing-dev 2.14-1
- π the page's license: LGPL-2.0-or-later
- Copyright (C) 2020 Jens Axboe <axboe@kernel.dk>
- Copyright (C) 2020 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms