io_uring_prep_uring_cmd(3)
π io_uring_prep_uring_cmd β prepare a uring_cmd request β¨
okay bestie, welcome to section 3 of the liburing Manual, we're talking about io_uring_prep_uring_cmd and honestly? it's giving "small function, big responsibility" π
πΈ SYNOPSIS πΈ
#include <liburing.h>
void io_uring_prep_uring_cmd(struct io_uring_sqe *sqe,
int cmd_op,
int fd);
β¨ DESCRIPTION β¨
So what does it actually do? The io_uring_prep_uring_cmd(3) function prepares a uring_cmd request β and yes, that one is fd specific, no cap. π¦
The submission queue entry sqe gets set up to use the filedescriptor fd to send the file descriptor specific cmd_op. That's the whole vibe: you hand it a queue entry, you hand it a command op, you hand it a file descriptor, and it wires them up together. π
The reserved fields are initialized to 0. Other than that? the caller has to set up any submission queue entry's operation specific fields. That's on you, babe β this function does the baseline, not the whole glow-up. π«Ά
lowkey important: this one only handles the reserved fields and the basics. anything operation specific in the SQE is your job. π
π RETURN VALUE π
None. Nothing. Zero. Not a single value returned, and that's on purpose, slay. β¨
π ERRORS π
None. No errors reported here, bestie β it just does the prep and hands it back. π
π SEE ALSO π
okay that's the whole page, you ate it, go set up your SQEs responsibly π
this was liburing-2.13, dated October 22, 2025 β mwah, take care of her π
π¦ where this page comes from
- 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
- 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 resolute: liburing-dev 2.14-1
- ubuntu stonking: liburing-dev 2.15-1
- π the page's license: LGPL-2.0-or-later
- Copyright (C) 2022 Samuel Williams
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms