From owner-freebsd-hackers Fri Aug 30 13:31:50 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 530B637B400 for ; Fri, 30 Aug 2002 13:31:47 -0700 (PDT) Received: from mail2.hd.intel.com (hdfdns02.hd.intel.com [192.52.58.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8453843E4A for ; Fri, 30 Aug 2002 13:31:46 -0700 (PDT) (envelope-from pavan.balaji@intel.com) Received: from fmsmsxvs041.fm.intel.com (fmsmsxvs041.fm.intel.com [132.233.42.126]) by mail2.hd.intel.com (8.11.6/8.11.6/d: solo.mc,v 1.42 2002/05/23 22:21:11 root Exp $) with SMTP id g7UKVjE27629 for ; Fri, 30 Aug 2002 20:31:45 GMT Received: from fmsmsx29.FM.INTEL.COM ([132.233.42.29]) by fmsmsxvs041.fm.intel.com (NAVGW 2.5.2.11) with SMTP id M2002083013303506065 ; Fri, 30 Aug 2002 13:30:36 -0700 Received: by fmsmsx29.fm.intel.com with Internet Mail Service (5.5.2653.19) id ; Fri, 30 Aug 2002 13:30:42 -0700 Message-ID: <3D386AED1B47D411A94300508B11F18704AD69D3@fmsmsx116.fm.intel.com> From: "Balaji, Pavan" To: "'Julian Elischer'" , "Balaji, Pavan" Cc: "'freebsd-hackers@freebsd.org'" Subject: RE: Copying from Virtual Address Space to Physical Address Date: Fri, 30 Aug 2002 13:30:32 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" 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 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.. Also, if this is right, how do I get the kernel virtual address it's associated to? The function returns a void. 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