From owner-freebsd-hackers Fri Aug 30 14: 0:24 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 E48F937B400 for ; Fri, 30 Aug 2002 14:00:15 -0700 (PDT) Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EC9743E42 for ; Fri, 30 Aug 2002 14:00:15 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020830210015.WELU19514.rwcrmhc52.attbi.com@InterJet.elischer.org>; Fri, 30 Aug 2002 21:00:15 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA04750; Fri, 30 Aug 2002 13:52:36 -0700 (PDT) Date: Fri, 30 Aug 2002 13:52:35 -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: <3D386AED1B47D411A94300508B11F18704AD69D3@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: > > I'm a little bit confused about this vmapbuf() thing. This is what I think, > correct me if I'm wrong. > > I have this User Virtual address, userbuf --> associated to physadd > > Now, I do vmapbuf(physadd), and I get a Kernel Virtual Address associated to > this "physadd". Now, I write to this Kernel Virtual Address and it reflects > in userbuf? OhmyGod!!! Is that what it's supposed to do? Hope it doesn't > oops my machine.. no that is correct. this function is for making user space buffers map into kernel space.. you just want the second half of this.. Now I have a question for you.... how do you know what pages you want to map into kernel virtual space? > > Also, if this is right, how do I get the kernel virtual address it's > associated to? The function returns a void. The buf steucture is updated to hold KV addresses for the region. 'bp' is a pointer to a complicated struct that defines the buffer, not to the address of the buffer itself. > > Thanx. > > Pavan Balaji, > Intel Corporation > Email: pavan.balaji@intel.com > > "Only the Paranoid Survive" -- Andy Grove > > > > -----Original Message----- > > From: Julian Elischer [mailto:julian@elischer.org] > > Sent: Friday, August 30, 2002 3:20 PM > > To: Balaji, Pavan > > Cc: 'freebsd-hackers@freebsd.org' > > Subject: Re: Copying from Virtual Address Space to Physical Address > > > > > > > > > > On Fri, 30 Aug 2002, Julian Elischer wrote: > > > > > Physio() does this.. first it finds the physical addresses > > of the user > > > pages targetted, then it maps those pages into kernel > > space, and then it > > > initiates IO to them. (this actually needs to change but > > for now it's > > > true. > > > > > > to correct myself.. > > physio() calls vmapbuf(bp) in order to do it.. > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message