From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 17 09:09:13 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 A2BFF16A41F for ; Tue, 17 Jan 2006 09:09:13 +0000 (GMT) (envelope-from pranav.sawargaonkar@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BAD443D46 for ; Tue, 17 Jan 2006 09:09:12 +0000 (GMT) (envelope-from pranav.sawargaonkar@gmail.com) Received: by wproxy.gmail.com with SMTP id i14so291490wra for ; Tue, 17 Jan 2006 01:09:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Dt3qJKZWmyg8mX/pYimhSJgnPtTMbaxGYIzq76+rKuxUgrbSBIBO1aoXCri8+Y4XnDvevpHzfZ/aFyQj9TYKmmCcRlegkbxORAWz6vOsy1rh8crtE4KRnn0Ty+f6fkWDK4B7NCDuXiNxP6W0EblL6AjMQGYVITiQzlTAumwMHOQ= Received: by 10.54.148.4 with SMTP id v4mr2167729wrd; Tue, 17 Jan 2006 01:09:11 -0800 (PST) Received: by 10.54.125.1 with HTTP; Tue, 17 Jan 2006 01:09:11 -0800 (PST) Message-ID: <5007e1a40601170109x6f8c7b03kb44f5f5a43ebe3be@mail.gmail.com> Date: Tue, 17 Jan 2006 14:39:11 +0530 From: Pranav Sawargaonkar To: "Kamal R. Prasad" In-Reply-To: MIME-Version: 1.0 References: <5007e1a40601161013q5692f79dge001ceac5de991df@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Accessing Pagetable of a process X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2006 09:09:13 -0000 Hello, I wanted to save the whole context of the process, thats why I want the access to each page allocated to the process of our interest. And further I want to write all these pages on to swap. The final objective is to save the context of a stopped process on the swap and restore the context afterwards and resume the process.Whatfunctions can be used to read/write to swap ? I have succeeded in accessing the vmspace through the 'struct proc' type pointer. TIA. Best regards, Pranav On 1/17/06, Kamal R. Prasad wrote: > > > > On 1/16/06, Pranav Sawargaonkar wrote: > > > > Hi > > I want to access pagetable of a perticular process. > > How i should get it?Is it possible to access by using pointer of type > > 'struct proc'? > > > by accessimg the vmspace for the process. > > Also i want to access each page referenced in > > pagetable of that process by writing my module how i can achieve this? > > Thanks in advance. > > > the pagetable is for translating virtual to physical addresses If you > want the contents of the page -you don't need to worry about the translat= ion > scheme. Im not sure I understand what you are looking for?? > > regards > -kamal > > > -Pranav > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.o= rg > > " > > > >