Line data Source code
1 : #define _GNU_SOURCE
2 : #include "fd_io_uring_sys.h"
3 : #include <sys/syscall.h> /* SYS_* */
4 : #include <unistd.h> /* syscall */
5 :
6 : int
7 : fd_io_uring_setup( uint entry_cnt,
8 0 : fd_io_uring_params_t * p ) {
9 0 : return (int)syscall( SYS_io_uring_setup, entry_cnt, p );
10 0 : }
11 :
12 : int
13 : fd_io_uring_register( int ring_fd,
14 : uint opcode,
15 : void const * arg,
16 0 : uint arg_cnt ) {
17 0 : return (int)syscall( SYS_io_uring_register, ring_fd, opcode, arg, arg_cnt );
18 0 : }
19 :
20 : int
21 : fd_io_uring_enter( int ring_fd,
22 : uint to_submit,
23 : uint min_complete,
24 : uint flags,
25 : void * arg,
26 0 : ulong arg_sz ) {
27 : return (int)syscall( SYS_io_uring_enter, ring_fd, to_submit, min_complete, flags, arg, arg_sz );
28 0 : }
|