io_uring_get_probe(3)

✨ io_uring_get_probe ✨

okay bestie, so this one is from the liburing manual, and it's literally the chillest little function ever πŸ’– she's called io_uring_get_probe and her whole job is getting you a probe instance πŸ¦‹


🌸 SYNOPSIS 🌸

like, here's how you summon her:

#include <liburing.h>

io_uring_probe *io_uring_get_probe(void);

no arguments, no drama, she just shows up πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

so io_uring_get_probe(3) hands you back an allocated io_uring_probe structure. it's yours now, bestie 🫢

and the way that memory works β€” you are responsible for freeing that structure. not her, not the kernel, you. and you do it with io_uring_free_probe(3). don't forget, i'm literally begging πŸ™ˆ because if you forget, that's a leak and leaks are not it πŸ’€


⭐ NOTES ⭐

okay so real talk for a sec. earlier versions of the Linux kernel do not support probe. like, at all. no probe era.

and if the kernel doesn't support probe, this function will return NULL. so like… vibe check your return value, always 🌈


πŸ’œ RETURN VALUE πŸ’œ

  • on success ➜ an allocated io_uring_probe structure ✨ slay
  • otherwise ➜ NULL 😭

that's it. that's the whole spectrum. iconic honestly πŸ‘‘


πŸ‘‘ SEE ALSO πŸ‘‘


mwah that's the page!! this is liburing-2.1, dated January 25, 2022, and yes she ate, no cap πŸ’–βœ¨πŸŒΈπŸ¦‹πŸ’…

πŸ“¦ where this page comes from