allow mmap()ing devices
|Reported by:||pulkomandy||Owned by:||pulkomandy|
|Has a Patch:||no||Platform:||All|
This is a feature of Linux (and likely other POSIX OS, even if it's not part of POSIX itself). mmap()ing a disk device gets you read and write access to the sectors. On linux, you can also mmap() the framebuffer device to draw on the screen. There are other uses for this, likely.
I can see that with the current device drivers, this is not possible. We likely need to change the device API, unless the mmap'ed area can be filled in with regular read and flushed with regular write calls (possibly with some caching).