mmap implementation for cdev

Filippo Sironi filippo.sironi at gmail.com
Sat Dec 3 09:20:58 UTC 2011


Ok, that's what I was suspecting.
Do you have any ideas on how to get the behavior I described in the previous mail?

On 03/dic/2011, at 10.16, Poul-Henning Kamp wrote:

> In message <A51F9B30-A71A-49A5-B684-16EC3C127BC9 at gmail.com>, Filippo Sironi wri
> tes:
> 
>> The problem is that when I come =
>> back to user space all the threads write in memory page mapped by the =
>> first thread that called the mmap leaving their memory pages untouched.
> 
> That's how cdev->mmap works, it is global rather than per-thread.
> 
> 
> -- 
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk at FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe    
> Never attribute to malice what can adequately be explained by incompetence.



More information about the freebsd-hackers mailing list