Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Dec 2011 09:16:24 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Filippo Sironi <filippo.sironi@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: mmap implementation for cdev
Message-ID:  <10964.1322903784@critter.freebsd.dk>
In-Reply-To: Your message of "Sat, 03 Dec 2011 09:42:44 %2B0100." <A51F9B30-A71A-49A5-B684-16EC3C127BC9@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <A51F9B30-A71A-49A5-B684-16EC3C127BC9@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10964.1322903784>