Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Dec 2011 11:03:35 +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:  <11431.1322910215@critter.freebsd.dk>
In-Reply-To: Your message of "Sat, 03 Dec 2011 11:37:01 %2B0100." <0011FD6A-E29D-4F67-913C-897BA1B2F56F@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <0011FD6A-E29D-4F67-913C-897BA1B2F56F@gmail.com>, Filippo Sironi wri
tes:
>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.

Have you looked how shm_open(2) and friends are implemented ?  That
might allow you to.

-- 
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?11431.1322910215>