frevib / io_uring-echo-server

io_uring echo server
MIT License
365 stars 55 forks source link

Why not need to malloc for cqe->user_data or sqe->user_data ( conn_info )? #19

Closed hi-glenn closed 8 months ago

hi-glenn commented 2 years ago

https://github.com/frevib/io_uring-echo-server/blob/io-uring-op-provide-buffers/io_uring_echo_server.c#L172

frevib commented 1 year ago

Do we need (expensive) memory allocation there?