From owner-freebsd-questions@FreeBSD.ORG Fri Apr 21 19:45:40 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC19F16A400 for ; Fri, 21 Apr 2006 19:45:40 +0000 (UTC) (envelope-from reitz@eecs.cwru.edu) Received: from beta.eecs.cwru.edu (beta.EECS.CWRU.Edu [129.22.150.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EC0C43D46 for ; Fri, 21 Apr 2006 19:45:40 +0000 (GMT) (envelope-from reitz@eecs.cwru.edu) Received: from bender ([::ffff:129.22.151.243]) (TLS: TLSv1/SSLv3,168bits,DES-CBC3-SHA) by beta.eecs.cwru.edu with esmtp; Fri, 21 Apr 2006 15:45:39 -0400 id 000ABF50.44493663.00000B01 Date: Fri, 21 Apr 2006 15:45:14 -0400 (EDT) From: Andy Reitz X-X-Sender: reitz@bender To: hongz@promisechina.com In-Reply-To: <1145611532$3858$69432506%hongz@promisechina.com> Message-ID: References: <1145611532$3858$69432506%hongz@promisechina.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to do physical-to-virtual translation in FreeBSD? Does FreeBSD support kmap() or kmap_atomic()? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 19:45:41 -0000 On Fri, 21 Apr 2006 hongz@promisechina.com wrote: > Hi guys: > > > > We are doing HBA driver (Soft Raid5) porting from Linux to FreeBSD. As we > need to do XOR in kernel space, we need to map a physical address into a > virtual address. In Linux, we use kmap_atomic() to implement it, and could > you tell me how to do it in FreeBSD? Thank for your help! Hi Hong, I'm not entirely sure, but you might want to try posting your question to the "freebsd-hackers" mailing list. Good luck, -Andy.