uncached user space mapping with mmap() ???

Dan Malek dan at embeddededge.com
Fri Mar 5 10:17:27 EST 2004

Richard Williams wrote:

> I just tried this using pread....

No, no.

Open /dev/mem and use mmap() to map your physical address:

   mmap(NULL, <page_size_bytes>, (PROT_READ|PROT_WRITE), MAP_SHARED, mem_fd, phys_addr);

Then, use the pointer returned from mmap() as the base of your

	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

More information about the Linuxppc-embedded mailing list