sys_io_getevents  [fs/aio.c]


Read asynchronous I/O events from the completion queue.

Arguments

eax 247
ebx The AIO context ID.
ecx Minimum number of events to read.
edx Maximum number of events to read.
esi Pointer to an io_event structure:
struc io_event
{
data rq 1 ; the data field from the iocb
obj  rq 1 ; what iocb this event came from
res  rq 1 ; result code for this event
res2 rq 1 ; secondary result
}
edi Pointer to a timespec structure that specifies the amount of time to wait for events, where a 0 timeout waits until at least number of events specified by ecx have been seen.
struc timespec
{
tv_sec     rd 1 ; seconds
tv_nsec    rd 1 ; nanoseconds
}

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:

-EINVAL ebx is invalid. ecx is out of range or edx is out of range.
-EFAULT One of the structures points to invalid data.

Remarks

n/a

Compatibility

n/a