… | |
… | |
491 | # endif |
491 | # endif |
492 | #endif |
492 | #endif |
493 | |
493 | |
494 | #if EV_USE_IOURING |
494 | #if EV_USE_IOURING |
495 | # include <sys/syscall.h> |
495 | # include <sys/syscall.h> |
496 | # if !SYS_io_uring_setup && __linux && !__alpha |
496 | # if !SYS_io_uring_register && __linux && !__alpha |
497 | # define SYS_io_uring_setup 425 |
497 | # define SYS_io_uring_setup 425 |
498 | # define SYS_io_uring_enter 426 |
498 | # define SYS_io_uring_enter 426 |
499 | # define SYS_io_uring_wregister 427 |
499 | # define SYS_io_uring_register 427 |
500 | # endif |
500 | # endif |
501 | # if SYS_io_uring_setup && EV_USE_EPOLL /* iouring backend requires epoll backend */ |
501 | # if SYS_io_uring_setup && EV_USE_EPOLL /* iouring backend requires epoll backend */ |
502 | # define EV_NEED_SYSCALL 1 |
502 | # define EV_NEED_SYSCALL 1 |
503 | # else |
503 | # else |
504 | # undef EV_USE_IOURING |
504 | # undef EV_USE_IOURING |
… | |
… | |
3165 | |
3165 | |
3166 | /* TODO: linuxaio is very experimental */ |
3166 | /* TODO: linuxaio is very experimental */ |
3167 | #if !EV_RECOMMEND_LINUXAIO |
3167 | #if !EV_RECOMMEND_LINUXAIO |
3168 | flags &= ~EVBACKEND_LINUXAIO; |
3168 | flags &= ~EVBACKEND_LINUXAIO; |
3169 | #endif |
3169 | #endif |
3170 | /* TODO: linuxaio is super experimental */ |
3170 | /* TODO: iouring is super experimental */ |
3171 | #if !EV_RECOMMEND_IOURING |
3171 | #if !EV_RECOMMEND_IOURING |
3172 | flags &= ~EVBACKEND_IOURING; |
3172 | flags &= ~EVBACKEND_IOURING; |
3173 | #endif |
3173 | #endif |
3174 | |
3174 | |
3175 | return flags; |
3175 | return flags; |