api for sharing memory from kernel to userspace?

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed May 19 07:35:11 PDT 2004


On Wed, May 19, 2004 at 05:29:07AM -0700, Alfred Perlstein wrote:
+> I need to share about 100megs of memory between kernel and userspace.
+> 
+> The memory can not be paged and should appear contig in the process's
+> address space.  Any suggestions?
+> 
+> I need a way to either:
+> map user memory into the kernel's address space.
+> map kernel memory into the user's address space.
+> 
+> I was looking at pmap_qenter() but it didn't see attractive because
+> it's for "short term mappings", this mapping will exist for quite a
+> while.

In mapping kernel memory into user's address space I am interested as well
for GEOM Gate and other evil projects.

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd at FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20040519/be36ec18/attachment.bin


More information about the freebsd-hackers mailing list