From owner-cvs-src-old@FreeBSD.ORG Fri Apr 9 02:39:38 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 781AB1065670 for ; Fri, 9 Apr 2010 02:39:38 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6778B8FC13 for ; Fri, 9 Apr 2010 02:39:38 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o392dcLX055441 for ; Fri, 9 Apr 2010 02:39:38 GMT (envelope-from alc@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o392dccN055440 for cvs-src-old@freebsd.org; Fri, 9 Apr 2010 02:39:38 GMT (envelope-from alc@repoman.freebsd.org) Message-Id: <201004090239.o392dccN055440@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to alc@repoman.freebsd.org using -f From: Alan Cox Date: Fri, 9 Apr 2010 02:39:20 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/vm vm_contig.c vm_extern.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 02:39:38 -0000 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