io_uring_sub...d_get_events(3)

✨ io_uring_submit_and_get_events ✨

okay bestie, you're in the liburing manual β€” the io_uring_sub...d_get_events(3) page, to be exact πŸ’… she's a long name, she's a lot, but she's worth it, fr fr.


🌸 NAME 🌸

io_uring_submit_and_get_events β€” she submits your requests to the submission queue and flushes your completions, all in one go πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <liburing.h>

int io_uring_submit_and_get_events(struct io_uring *ring);

πŸ’– DESCRIPTION πŸ’–

so like, the way that io_uring_submit_and_get_events(3) works is: it submits the next events to the submission queue, exactly like io_uring_submit(3) does. then, right after submission, it flushes the CQEs just like io_uring_get_events(3). two besties, one function 🫢

and the benefit?? THE benefit?? she does both of those things with only one system call ✨ lowkey iconic, highkey efficient, no cap.


πŸ‘‘ RETURN VALUE πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, bestie!! this was pulled straight out of liburing-2.3, dated September 5, 2022 β€” go submit something and flush it, you got this πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from