mmaping /dev/mem

sridhar vaidyanathan (sridharv@ufl.edu)
Wed, 12 Mar 2003 19:36:47 -0500


I have a problem mmaping /dev/mem on some address in RAM. I am aware of
caveats,but I am trying to mmap a region which I am sure is not in use by the
kernel(some additional code does this and returns a physical address which is
what I use for mmap). The mmap call itself succeeds and /proc/pid/maps also
shows that region, but I am unable to see what I write in target memory.I also
tried with the O_SYNC flag as I was wondering is caching had anything to do
with the results that I was seeing.No effect.
This however works with a mem= option and when the mmap region falls out of the
mem= boundary.
any clues?
Please cc as I am not subscribed
sridhar

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/