From owner-freebsd-hackers Sun Nov 30 12:52:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA03879 for hackers-outgoing; Sun, 30 Nov 1997 12:52:16 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA03874 for ; Sun, 30 Nov 1997 12:52:10 -0800 (PST) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id MAA03189; Sun, 30 Nov 1997 12:52:01 -0800 (PST) Message-ID: <19971130125201.44588@hydrogen.nike.efn.org> Date: Sun, 30 Nov 1997 12:52:01 -0800 From: John-Mark Gurney To: "John S. Dyson" Cc: j_mini@efn.org, hackers@FreeBSD.ORG Subject: Re: dirty bit in page allocations. References: <19971130003340.56477@micron.mini.net> <199711301916.OAA01128@dyson.iquest.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <199711301916.OAA01128@dyson.iquest.net>; from John S. Dyson on Sun, Nov 30, 1997 at 02:16:28PM -0500 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk John S. Dyson scribbled this message on Nov 30: > 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. well... since Mini is still a sleep... basicly he is writing code that will use the VBE spec to interface with the video card and display graphics... as the spec doesn't force the card to have a linear frame buffer he is writing code that will "simulate" a linear frame buffer for the application.. he then needs to find out what pages in the simulated linear frame buffer has been modified and only write those pages out to the video card... -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking Live in Peace, destroy Micro$oft, support free software, run FreeBSD