Better HN
topnewbestaskshowjobs
Log inSign up

axboe

3 karma · joined Feb 23, 2020 (6y ago) · 3 submissions

Submissions

comment 3y ago · link · parent

Thank you for highlighting that, part of the design criteria for io_uring was indeed to be able to do everything. It's even mentioned in the second sentence of the linked write-up, no more "everything is a file... until you need to do IO to it".

comment 3y ago · link · parent

This is correct, the "u" is for userspace/usermapped. The memory is actually allocate by the kernel, but it's mapped into the applications address space.

comment 3y ago · link · parent

The buffers are supplied elsewhere outside that example, just consider it an array of pointers to buffers of size BUF_SIZE. br->bufs[] is the shared space, it holds information on the address/size/id of a given buffer.