io_uring_register_probe(3)
β¨ io_uring_register_probe β register probe with io_uring β¨
okay bestie, welcome to the liburing manual, this one's io_uring_register_probe(3) and it's lowkey a little detective mission for your kernel π
πΈ SYNOPSIS πΈ
#include <liburing.h>
int io_uring_register_probe(struct io_uring *ring,
struct io_uring_probe *p,
unsigned nr);
π¦ DESCRIPTION π¦
So here's the vibe: io_uring_register_probe(3) goes and asks the kernel which io_uring opcodes it actually supports, and then it fills in the probe structure p with the answer. no cap, it's literally just "hey kernel, whatcha got?" π
- the
ringargument is theio_uringinstance you're interrogating β that's the one getting queried, bestie π - the
nrargument is the maximum number of opcodes to query, so it's your little cap on how much you're asking for
The probe structure holds all the tea about which opcodes the kernel supports. Once you've called this function, your app can use io_uring_opcode_supported(3) to check whether one specific opcode is supported. iykyk π
okay but real talk β most applications should useio_uring_get_probe(3)orio_uring_get_probe_ring(3)instead, because those ones allocate and fill in the probe structure automatically for you. this function is the manual, do-it-yourself version. no shade, just saying π
π RETURN VALUE π
- returns
0on success β slay β¨ - on error, it returns a negative errno value π
π SEE ALSO π
io_uring_get_probe(3)io_uring_get_probe_ring(3)io_uring_opcode_supported(3)io_uring_free_probe(3)io_uring_register(2)
that's the whole page, bestie, you ate π«Ά this was liburing-2.4, dated January 18, 2025, from the liburing manual β mwah, go probe something iconic πβ¨π
π¦ 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
- 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) 2025 Jens Axboe <axboe@kernel.dk>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms