|
NAMEmincore —
determine residency of memory pages
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/mman.h>
int
DESCRIPTIONThemincore () system call determines whether each of the
pages in the region beginning at addr and continuing for
len bytes is resident or mapped, depending on the value
of sysctl vm.mincore_mapped. The status is returned in
the vec array, one character per page. Each character is
either 0 if the page is not resident, or a combination of the following flags
(defined in <sys/mman.h> ):
The information returned by If the vm.mincore_mapped sysctl is set to a
non-zero value (default), only the current process' mappings of the pages in
the specified virtual address range are examined. This does not preclude the
system from returning IMPLEMENTATION NOTESPrior to the introduction ofMINCORE_PSIND() in
FreeBSD 13.0, MINCORE_SUPER
consisted of a single bit equal to MINCORE_PSIND(1) .
In particular, applications compiled using the old value of
MINCORE_SUPER will not identify large pages with size
index 2 as being large pages.
RETURN VALUESThemincore () function returns the value 0 if
successful; otherwise the value -1 is returned and the global variable
errno is set to indicate the error.
ERRORSThemincore () system call will fail if:
SEE ALSOmadvise(2), mlock(2), mprotect(2), msync(2), munmap(2), getpagesize(3), getpagesizes(3)HISTORYThemincore () system call first appeared in
4.4BSD.
Visit the GSP FreeBSD Man Page Interface. |