io_uring_get_probe_ring(3)

✨ io_uring_get_probe_ring ✨

okay bestie so you're deep in liburing land and you need to know what your kernel actually supports β€” this is the page for that πŸ’–


🌸 NAME 🌸

io_uring_get_probe_ring β€” get probe information from an existing ring πŸ¦‹


πŸ’… SYNOPSIS πŸ’…

#include <liburing.h>

struct io_uring_probe *io_uring_get_probe_ring(struct io_uring *ring);

like literally that's it, one function, one header, we love a low-effort queen πŸ‘‘


πŸŽ€ DESCRIPTION πŸŽ€

so the way this works: io_uring_get_probe_ring(3) hands you back probe information for the io_uring instance you pass in as ring. basically it's your little spy πŸ•΅οΈβ™€οΈ that tells the application which opcodes the kernel actually supports. no more guessing, no more sending an opcode into the void and praying πŸ™ˆ

the returned probe structure is yours to free β€” and you must free it with io_uring_free_probe(3) once you're done with it. no leaking, bestie, that's not the vibe 😭

and here's the tea β˜•: this function is basically twins with io_uring_get_probe(3), except it works off a ring you already have instead of spinning up a temporary one. same energy, fewer steps. slay ✨


πŸ”₯ RETURN VALUE πŸ”₯

  • success β€” you get a pointer to an allocated struct io_uring_probe πŸ‘‘
  • failure β€” you get NULL πŸ’€

🌈 SEE ALSO 🌈


and that's the whole page, periodt πŸ’œ this one's from liburing-2.4, dated January 18, 2025 β€” go probe something iconic, bestie πŸ«ΆπŸ’–πŸŒΈ

πŸ“¦ where this page comes from