From owner-freebsd-hackers Tue Aug 14 1:15:50 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 1FAC937B411; Tue, 14 Aug 2001 01:15:32 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f7E8FBJ80933; Tue, 14 Aug 2001 11:15:11 +0300 (EEST) (envelope-from ru) Date: Tue, 14 Aug 2001 11:15:11 +0300 From: Ruslan Ermilov To: Peter Wemm Cc: doc@FreeBSD.org, hackers@FreeBSD.org Subject: Re: can somebody please fix mincore(2) man page? Message-ID: <20010814111511.C71466@sunbay.com> Mail-Followup-To: Peter Wemm , doc@FreeBSD.org, hackers@FreeBSD.org References: <20010814023008.B209C38CC@overcee.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010814023008.B209C38CC@overcee.netplex.com.au>; from peter@wemm.org on Mon, Aug 13, 2001 at 07:30:08PM -0700 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 On Mon, Aug 13, 2001 at 07:30:08PM -0700, Peter Wemm wrote: > > DESCRIPTION > The mincore() system call allows a process to obtain information about > whether pages are core resident. Here the current core residency of the > pages is returned in the character array vec, with a value of 1 meaning > that the page is in-core. > > versus: > > /* > * Return bits from mincore > */ > #define MINCORE_INCORE 0x1 /* Page is incore */ > #define MINCORE_REFERENCED 0x2 /* Page has been referenced by us */ > #define MINCORE_MODIFIED 0x4 /* Page has been modified by us */ > #define MINCORE_REFERENCED_OTHER 0x8 /* Page has been referenced */ > #define MINCORE_MODIFIED_OTHER 0x10 /* Page has been modified */ > > ie: we dont return "1", we return bit flags with those values. > See how its formatted in mmap()/madvise()/etc. > Provided that some VM guru sends us an extended descriptions of MINCORE_* flags, yes, that could be done. It's a pity that John Dyson did not document these back in 1996. The DESCRIPTION text is to be fixed as well, as the mincore(2) syscall is not limited to the in-core residency question, as it seems. Plain text submissions would be highly appreciated as well. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message