io_uring_sqe_set_buf_group(3)
β¨ io_uring_sqe_set_buf_group β¨
okay bestie, welcome to the liburing manual, page for io_uring_sqe_set_buf_group(3) π this one's short and sweet, like a little snack, but it's lowkey important if you're doing multishot stuff, so pay attention π«Ά
πΈ NAME πΈ
io_uring_sqe_set_buf_group β set buf group for submission queue event π
π SYNOPSIS π
#include <liburing.h>
void io_uring_sqe_set_buf_group(struct io_uring_sqe *sqe,
int bgid);
no return value, no drama, just vibes β¨
π¦ DESCRIPTION π¦
so the way this works is, io_uring_sqe_set_buf_group(3) sets the associated buf_group of the sqe to bgid. that's it. that's the whole job. she's a one-task queen π
and when do you use her? okay so after the caller has requested a submission queue entry (SQE) with io_uring_get_sqe(3), they can associate a buf_group with the SQE used for multishot operations π₯ like, that's the moment. you got your SQE, now you're telling it which buf group it belongs to, and multishot is gonna eat that up fr fr.
not me explaining a two-line function like it's a whole personality, but honestly? it deserves the spotlight π
π RETURN VALUE π
None π nothing. zero. she gives you nothing back and honestly that's iconic of her. no error code, no exit status, no nothing. just set and go β¨
π§ SEE ALSO π§
io_uring_get_sqe(3)io_uring_cqe_set_data(3)
go read those too bestie, they're part of the same little squad π«Ά
okay that's the whole page!! this was liburing-2.9, dated December 9, 2024, and it lives in the liburing Manual πΈ mwah, go slay your multishot ops, you got this π
π¦ 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
- arch rolling: liburing 2.15-1 Β· GPL-2.0-only WITH Linux-syscall-note OR MIT AND LGPL-2.0-or-later AND 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 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
- ubuntu questing: liburing-dev 2.11-1
- ubuntu resolute: liburing-dev 2.14-1
- ubuntu stonking: liburing-dev 2.15-1
- π the page's license: LGPL-2.0-or-later
- Copyright (C) 2024 Christian Mazakas <christian.mazakas@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms