disk access


I am wandering if disk access from kernel function is possible.

If not, Is there anyway to do that?




If you really really got fancy…

on the host side, use memory mapping to map a file to host memory addresses.

Then use zero-copy memory to allow the device to fetch from the host via PCIe.

I’ve never tried this, and the zero-copy may not even be compatible with memory mapped addresses, but it’s probably the only chance of succeeding.