On 12/19/23 2:03 PM, David Wei wrote: > From: David Wei <davidhwei@xxxxxxxx> > > This patch adds mmap support for ifq rbuf rings. There are two rings and > a struct io_rbuf_ring that contains the head and tail ptrs into each > ring. > > Just like the io_uring SQ/CQ rings, userspace issues a single mmap call > using the io_uring fd w/ magic offset IORING_OFF_RBUF_RING. An opaque > ptr is returned to userspace, which is then expected to use the offsets > returned in the registration struct to get access to the head/tail and > rings. Reviewed-by: Jens Axboe <axboe@xxxxxxxxx> -- Jens Axboe