From owner-freebsd-hackers Sun Nov 30 00:34:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA26790 for hackers-outgoing; Sun, 30 Nov 1997 00:34:19 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from d198-232.uoregon.edu (d198-232.uoregon.edu [128.223.198.232]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA26784; Sun, 30 Nov 1997 00:34:13 -0800 (PST) (envelope-from mini@d198-232.uoregon.edu) Received: (from mini@localhost) by d198-232.uoregon.edu (8.8.5/8.8.5) id AAA03136; Sun, 30 Nov 1997 00:33:41 -0800 (PST) Message-ID: <19971130003340.56477@micron.mini.net> Date: Sun, 30 Nov 1997 00:33:40 -0800 From: Jonathan Mini To: dyson@freebsd.org Cc: hackers@freebsd.org Subject: dirty bit in page allocations. Reply-To: Jonathan Mini Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88e X-files: The Truth is Out There Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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? -- Jonathan Mini Ingenious Productions Software Development P.O. Box 5693, Eugene, Or. 97405 "A child of five could understand this! Quick -- Fetch me a child of five."