xref: /original-bsd/lib/libc/sys/mincore.2 (revision 3705696b)
1.\" Copyright (c) 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)mincore.2	8.1 (Berkeley) 06/09/93
7.\"
8.Dd
9.Dt MINCORE 2
10.Os
11.Sh NAME
12.Nm mincore
13.Nd get advise about use of memory
14.Sh SYNOPSIS
15.Fn mincore "caddr_t addr" "int len" "char *vec"
16.Sh DESCRIPTION
17The
18.Fn mincore
19system call
20allows a process to obtain information about whether pages are
21core resident.
22Here the current core residency of the pages is returned
23in the character array
24.Fa vec ,
25with a value of 1 meaning
26that the page is in-core.
27.Sh SEE ALSO
28.Xr msync 2 ,
29.Xr munmap 2 ,
30.Xr mprotect 2 ,
31.Xr madvise 2 ,
32.Sh HISTORY
33The
34.Fn mincore
35function first appeared in 4.4BSD.
36