From owner-freebsd-hackers Sun Nov 30 11:16:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA26545 for hackers-outgoing; Sun, 30 Nov 1997 11:16:43 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA26529; Sun, 30 Nov 1997 11:16:35 -0800 (PST) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.7/8.8.8) id OAA01128; Sun, 30 Nov 1997 14:16:28 -0500 (EST) (envelope-from toor) From: "John S. Dyson" Message-Id: <199711301916.OAA01128@dyson.iquest.net> Subject: Re: dirty bit in page allocations. In-Reply-To: <19971130003340.56477@micron.mini.net> from Jonathan Mini at "Nov 30, 97 00:33:40 am" To: j_mini@efn.org Date: Sun, 30 Nov 1997 14:16:28 -0500 (EST) Cc: dyson@freebsd.org, hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Jonathan Mini said: > I need to read and set the dirty bit on pages of allocated kernel memory. I > allocate the memory via malloc, and then export it to the userland via mmap. > What I need to do is clear and test the dirty bit on those pages. This way, I > can dump only those pages which have been modified instead of the entire set > of pages. > What are the functions/macros/etc which will allow me to do this? > What, exactly, are you trying to do? (I am not trying to be snotty or anything, but there are easy ways to do certain things, and more difficult ways :-)). I might be able to help you put something together that is easy. -- John dyson@freebsd.org jdyson@nc.com