I want to write from the memory of a memory-mapped device directly to hard disc directly, without going through RAM (to increase efficiency). Also I need to do the reverse, to write from disc to the memory mapped device.
How can I do it?
I heard that it is impossible on Linux, because there is a risk that someone will swap out to virtual memory the memory-mapped device. Is this true? Is there a way around it?