mmap implementation for cdev
Poul-Henning Kamp
phk at phk.freebsd.dk
Sat Dec 3 09:31:59 UTC 2011
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