I ported a device driver that used mmap so that a user space application shared a page with the interrupt routine in a device driver. The mapping software generally followed the "nopage" code outlined in Rubini's book.
I found a caching problem in that the memory contents as seen from the device driver differed to that seen from user space.
At the moment I am changing the design of my driver so that the mapping is unnecessary. I thought I would mention this though before I go to the effort of analying the problem further.
--
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr
Powered by Outblaze
|