io_getevents(2) System Calls Manual io_getevents(2) io_getevents - / C (libc, -lc) Alternatively, Asynchronous I/O library (libaio, -laio); see VERSIONS. #include /* Definition of *io_* types */ #include /* Definition of SYS_* constants */ #include int syscall(SYS_io_getevents, aio_context_t ctx_id, long min_nr, long nr, struct io_event *events, struct timespec *timeout); Note: glibc provides no wrapper for io_getevents(), necessitating the use of syscall(2). Note: this page describes the raw Linux system call interface. The wrapper function provided by libaio uses a different type for the ctx_id argument. See VERSIONS. io_getevents() , , min_nr nr AIO, ctx_id. The timeout argument specifies the amount of time to wait for events, and is specified as a relative timeout in a timespec(3) structure. , / . timeout NULL -- min_nr . io_getevents() . 0 min_nr, timeout . min_nr, . For the failure return, see VERSIONS. EFAULT events timeout. EINTR ; signal(7). EINVAL ctx_id. min_nr nr . ENOSYS io_getevents() . You probably want to use the io_getevents() wrapper function provided by libaio. , libaio (io_context_t) ctx_id. , libaio C : ( ). syscall(2), : -1 errno () . Linux. Linux 2.5. ctx_id , EINVAL. io_cancel(2), io_destroy(2), io_setup(2), io_submit(2), timespec(3), aio(7), time(7) () Azamat Hackimov , Dmitriy S. Seregin , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . io_getevents(2)