Date: Sat, 3 Dec 2011 11:37:01 +0100 From: Filippo Sironi <filippo.sironi@gmail.com> To: freebsd-hackers@freebsd.org Cc: Poul-Henning Kamp <phk@phk.freebsd.dk> Subject: Re: mmap implementation for cdev Message-ID: <0011FD6A-E29D-4F67-913C-897BA1B2F56F@gmail.com> In-Reply-To: <11076.1322906459@critter.freebsd.dk> References: <11076.1322906459@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
I need to access the memory both from user space and kernel space, I = cannot do that (simply) with an mmap or thread-specific storage if I = recall correctly. On 03/dic/2011, at 11.00, Poul-Henning Kamp wrote: > In message <A842C229-1846-408A-999A-9347770EFE7A@gmail.com>, Filippo = Sironi wri > tes: >=20 > Why don't you just use mmap(2) ? I couldn't see anything you > couldn't do with it. >=20 > There's also support in pthread for thread specific storage, which > should be your first choice. >=20 >=20 > --=20 > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe =20 > 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?0011FD6A-E29D-4F67-913C-897BA1B2F56F>