Release the context associated with the userspace handle
#include <errno.h> #include <libaio.h> int io_queue_release(io_context_t ctx);
io_queue_release destroys the context associated with the userspace handle. May cancel any outstanding AIOs and block on completion.
On success, io_queue_release returns 0. Otherwise, -error is return, where error is one of the Exxx values defined in the Errors section.
ctx refers to an unitialized aio context, the iocb pointed to by iocbs contains an improperly initialized iocb.