Date: Fri, 9 Apr 2010 02:39:20 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/vm vm_contig.c vm_extern.h Message-ID: <201004090239.o392dccN055440@repoman.freebsd.org>
index | next in thread | raw e-mail
alc 2010-04-09 02:39:20 UTC
FreeBSD src repository
Modified files:
sys/vm vm_contig.c vm_extern.h
Log:
SVN rev 206409 on 2010-04-09 02:39:20Z by alc
Introduce the function kmem_alloc_attr(), which allocates kernel virtual
memory with the specified physical attributes. In particular, like
kmem_alloc_contig(), the caller can specify the physical address range
from which the physical pages are allocated and the memory attributes
(i.e., cache behavior) for these physical pages. However, in contrast to
kmem_alloc_contig() or contigmalloc(), the physical pages that are
allocated by kmem_alloc_attr() are not necessarily physically contiguous.
This function is needed by DRM and VirtualBox.
Correct an error in the prototype for kmem_malloc(). The third argument
had the wrong type.
Tested by: rnoland
MFC after: 3 days
Revision Changes Path
1.74 +97 -18 src/sys/vm/vm_contig.c
1.92 +3 -1 src/sys/vm/vm_extern.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004090239.o392dccN055440>
