question about writing to memory directly from user space in Linux

Stefan Nickl Stefan.Nickl at kontron.com
Wed Mar 23 20:46:45 EST 2005


On Wed, 2005-03-23 at 14:25 +0530, Vijay Padiyar wrote:
> Can you suggest some kind of a "synchronization" function which I can call
> from *user space* which will ensure that all values written to mmaped memory
> locations from user space are actually flushed to their physical locations?
> I think this might be a potential problem with my code.

Have a look at linux/include/asm-ppc/{io.h,system.h} and
http://www.xml.com/ldd/chapter/book/ch08.html

The eieio instruction doesn't need supervisor rights.

Greetings,

-- 
Stefan Nickl
Kontron Modular Computers





More information about the Linuxppc-embedded mailing list