pub unsafe fn io_submit(
ctx_id: aio_context_t,
nr: isize,
iocb: &mut iocb_t
) -> Result<i32, Errno>
Expand description
Queue the nr iocbs pointed to by iocbpp for processing.
Returns the number of iocbs queued.
§Errors
- May return
-EINVAL
if theaio_context
specified byctx_id
is invalid, ifnr
is < 0, if theiocb
at*iocbpp[0]
is not properly initialized, if the operation specified is invalid for the file descriptor in theiocb
. - May fail with
-EFAULT
if any of the data structures point to invalid data. - May fail with
-EBADF
if the file descriptor specified in the firstiocb
is invalid. - May fail with
-EAGAIN
if insufficient resources are available to queue any iocbs. - Will return 0 if nr is 0.
- Will fail with
-ENOSYS
if not implemented.