axboe / liburing

Library providing helpers for the Linux kernel io_uring support
MIT License
2.7k stars 393 forks source link

Will there be examples for pure kernel side io_uring passthrough? #1170

Closed deepgrace closed 2 weeks ago

deepgrace commented 2 weeks ago

Will there be examples for reading or writing NVMe SSD devices (/dev/ng0n1 or /dev/nvme0n2) directly by pure kernel side io_uring passthrough without any dependency on liburing?

I have looked at this https://github.com/axboe/liburing/blob/master/test/io_uring_passthrough.c and tried some times, but it's hard to rewrite the example to a pure kernel side io_uring passthrough to read or write NVMe SSD devices.

axboe commented 2 weeks ago

If helpers are written for that, they would obviously be liburing helpers. I don't have any plans to provide generic raw helpers for that. Any reason you can't just use liburing?