Sharing the same VM address space between Kernel and UserSpace

John Giacomoni John.Giacomoni at colorado.edu
Mon Nov 14 20:39:23 GMT 2005


I am in need of a way to share memory between kernel space and possibly
multiple different user-space processes for an extended period of time.
This memory would need to be a single unpageable region.

I am using the vm routines as cribbed from mmap, however I'd like the
address spaces to be viewed as the same regardless of which process I'm
in to avoid swizzling pointers as I'm storing data structures in the
shared memory region.

I imagine I'd need to find a way to expose part of the kernel address
space to user space to accomplish this.

Is there a way to do this?

thanks

John G

--

John.Giacomoni at colorado.edu
University of Colorado at Boulder
Department of Computer Science
Engineering Center, ECCR 1B05
430 UCB
Boulder, CO 80303-0430
USA




More information about the freebsd-hackers mailing list