From owner-freebsd-current@FreeBSD.ORG Sat Aug 16 03:51:19 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48E8F1065682 for ; Sat, 16 Aug 2008 03:51:19 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 0B6498FC21 for ; Sat, 16 Aug 2008 03:51:18 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.local ([192.168.254.200]) (authenticated bits=0) by pooker.samsco.org (8.14.2/8.14.2) with ESMTP id m7G3pF5p075246; Fri, 15 Aug 2008 21:51:15 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <48A64EB3.80204@samsco.org> Date: Fri, 15 Aug 2008 21:51:15 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9 MIME-Version: 1.0 To: vehemens References: <200808151945.50696.vehemens@verizon.net> In-Reply-To: <200808151945.50696.vehemens@verizon.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=3.8 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: freebsd-current@freebsd.org Subject: Re: kernel memory X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 03:51:19 -0000 vehemens wrote: > I'm going to ask this question as I have not seen this rule written down > anywhere. So don't shoot me please :> > > Do kernel memory memory routines such as malloc always return a region of > memory that is locked to a physical page? Malloc does, yes, as does the UMA zone allocator. If all you want is an virtual address range, but no backing pages, use kmem_alloc_nofault(kernel_map, size). To later associate it with a physical page, you can use something like pmap_kenter(va, pa) Scott