svn commit: r211770 - projects/ofed/head/sys/ofed/include/linux

John Baldwin jhb at freebsd.org
Tue Aug 24 20:50:04 UTC 2010


On Tuesday, August 24, 2010 4:40:12 pm Jeff Roberson wrote:
> Author: jeff
> Date: Tue Aug 24 20:40:12 2010
> New Revision: 211770
> URL: http://svn.freebsd.org/changeset/base/211770
> 
> Log:
>    - Provide a mmap_single interface as well as mmap.  mmap_single gives
>      the device pager an offset based on the physical address returned by
>      the linux mmap handler so that the normal mmap handler can simply
>      return the offset as the paddr when a fault happens and we no longer
>      have the context required to resolve the address.

You could preserve the memory attributes by using the attribute from vma to 
set the memory attribute for the VM object you create.  I'm not sure how well 
the system will cope with having multiple OBJT_DEVICE objects for a single 
cdev btw.  You could use an OBJT_SG object instead if that proves to be a 
problem.  It would also avoid the d_mmap callback at page fault time.

-- 
John Baldwin


More information about the svn-src-projects mailing list