> You mean the one in liburing? I'am referring to https://github.com/frevib/io_uring-echo-server/blob/master/src/include/liburing/io_uring.h with sockets OPs as the latest interface reference, thinking it will help the io_uring newcomers if IORING_OP_* lines will have corresponding comments of the minimum kernel requirement for now and the future. For example I was almost totally sure that sockets were the first uring-supported thing. > Yeah, you'll need 5.5 for that. I see, thanks :) On Wed, Jan 22, 2020 at 9:11 PM Jens Axboe <axboe@xxxxxxxxx> wrote: > > On 1/22/20 11:08 AM, Dmitry Sychov wrote: > > It's unclear starting from what version the kernel and headers > > were updated with sockets support(IORING_OP_ACCEPT etc). > > > > I just checked today 2020/01/22 Focal Rossa Ubuntu and the last OP is > > only IORING_OP_TIMEOUT (still on kernel 5.4.0-12) ;( > > Yeah, you'll need 5.5 for that. > > > So maybe it's a good idea to comment-update every io_uring.h OP with > > minimum kernel version requirement... > > You mean the one in liburing? > > > p.s. Not every Linux user is a kernel hacker ;) > > Definitely! This will be solved with 5.6 that introduces a probe > command, so you can query the running kernel for what opcodes it > supports. For now, it's not that easy, unfortunately... > > -- > Jens Axboe >