On Sat, 2005-09-17 at 12:10 -0400, Linh Dang wrote: > Hi, how come reading memory from /dev/mem using pread(2) or mmap(2) > will give diffent results? because you're being evil ;) mmap of /dev/mem for *ram* is special. To avoid cache aliases and other evils, you can only mmap non-ram realistically on /dev/mem. Why are you using /dev/mem in the first place, it's a sure sign that you're doing something really wrong in your design...
Attachment:
signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- Re: mmap (2) vs read (2)
- From: "Linh Dang" <[email protected]>
- Re: mmap (2) vs read (2)
- References:
- mmap (2) vs read (2)
- From: "Linh Dang" <[email protected]>
- mmap (2) vs read (2)
- Prev by Date: EZD driver and hdx=remap.
- Next by Date: Re: [PATCH] per process I/O statistics for userspace
- Previous by thread: mmap (2) vs read (2)
- Next by thread: Re: mmap (2) vs read (2)
- Index(es):