On Fri, 2005-05-20 09:48:35 -0400, Richard B. Johnson <[email protected]> wrote:
if((fd = open("/dev/mem", O_RDWR)) == FAIL)
ERRORS("open");
if((sp = mmap((void *)SCREEN, len, PROT, TYPE, fd, SCREEN))==MAP_FAILED)
ERRORS("mmap");
Try to open("/dev/mem", O_RDWR | O_SYNC). Without this the mapping
will be chached.
-marco
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]