Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Aug 2001 11:15:11 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Peter Wemm <peter@wemm.org>
Cc:        doc@FreeBSD.org, hackers@FreeBSD.org
Subject:   Re: can somebody please fix mincore(2) man page?
Message-ID:  <20010814111511.C71466@sunbay.com>
In-Reply-To: <20010814023008.B209C38CC@overcee.netplex.com.au>; from peter@wemm.org on Mon, Aug 13, 2001 at 07:30:08PM -0700
References:  <20010814023008.B209C38CC@overcee.netplex.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010814111511.C71466>