From owner-freebsd-hackers Mon Feb 24 2: 3:51 2003 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 2953837B401 for ; Mon, 24 Feb 2003 02:03:50 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61DA943FD7 for ; Mon, 24 Feb 2003 02:03:49 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h1OA3m3W006611; Mon, 24 Feb 2003 02:03:48 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h1OA3kxs006610; Mon, 24 Feb 2003 02:03:46 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Mon, 24 Feb 2003 02:03:46 -0800 From: David Schultz To: Byunghyun Oh Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Replacement for get_user_pages() of Linux Message-ID: <20030224100346.GA6374@HAL9000.homeunix.com> Mail-Followup-To: Byunghyun Oh , freebsd-hackers@FreeBSD.org References: <20030223163746.A19421@shell.postech.ac.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030223163746.A19421@shell.postech.ac.kr> 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 Thus spake Byunghyun Oh : > I'm porting Plex86 x86 VM, which uses get_user_pages() function at > Linux-version kernel module to find and pin physical pages of memory > in user space (according to its documentation). I tried many > candidates as its replacement (PHYS_TO_VM_PAGE() macro in vm/vm_page.h > seems most useful now), but they haven't worked at all. > > Any experience about porting VM-related things in Linux will be > appreciated. :) Glancing at the Linux source, it looks like you want vm_map_wire(). BTW, in the future, it helps if you can describe what you're looking for, since we're not all Linux experts. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message