From owner-freebsd-hackers Fri Aug 30 15: 0:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2351437B401 for ; Fri, 30 Aug 2002 15:00:23 -0700 (PDT) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED66D43E3B for ; Fri, 30 Aug 2002 15:00:21 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by sccrmhc02.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020830220020.MIYK13899.sccrmhc02.attbi.com@InterJet.elischer.org>; Fri, 30 Aug 2002 22:00:20 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id OAA05027; Fri, 30 Aug 2002 14:42:03 -0700 (PDT) Date: Fri, 30 Aug 2002 14:42:02 -0700 (PDT) From: Julian Elischer To: "Balaji, Pavan" Cc: "'freebsd-hackers@freebsd.org'" Subject: RE: Copying from Virtual Address Space to Physical Address In-Reply-To: <3D386AED1B47D411A94300508B11F18704AD69D5@fmsmsx116.fm.intel.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 30 Aug 2002, Balaji, Pavan wrote: > > Thanx. It's nearly done. I just need to know two more small things. > > physio() requires a dev_t as a parameter. What do I give in over here? I > can't give NULL, cause it does use it for some stuff in the function > definition. I wasn't suggesting that you use physio() but that you use it and it's friend as a prototype for yourself when you write a function to do what you want. The dev_t is associated with the device this is doing IO from so it's not necessarily relelvant to you. you haven't told us enough about what you want to do to allow us to really understand your problem. > > Also, the only other parameters to physio() are the uio and the ioflag > (which is not used at all). So, where is the kernel virtual address mapping? > Do I have to do something this this dev_t thing to open a virtual device > which maps to the kernel virtual address. If yes, how do I do this? > > Thanx. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message