mmap implementation for cdev

Poul-Henning Kamp phk at phk.freebsd.dk
Sat Dec 3 11:03:37 UTC 2011


In message <0011FD6A-E29D-4F67-913C-897BA1B2F56F at 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 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