On Thu, Mar 22, 2012 at 10:42 AM, Eric Saint-Etienne
<eric.saintetie...@gmail.com> wrote:
> Actually when using kernel_map, the object returned is NULL! However the
> the vm_entry_t it returns seems a valid address, its 'object' field is NULL
> too (that's consistent)
> That's the reason why I didn't find it in any existing 'puclic' map (such as
> kernel_map, buffers_map, kmem_map, exec_map or pipe_map)
>
> But a NULL object isn't good at anything and I'm not sure what to do with
> a vm_entry_t only... Any idea how to insert it in the process map?

If your kernel module creates a device in /dev that implements the
mmap method, then you don't need to worry about mucking around with
vm_maps and objects and whatnot.  Your mmap method just needs to be
able to convert offsets into the device into physical memory
addresses, and the vm infrastructure will do the rest for you.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to