Provided by: manpages-dev_3.35-0.1ubuntu1_all mincore -
determine whether pages are resident in memory int mincore(void
*addr, size_t length, unsigned char *vec); Feature Test Macro
Requirements for glibc (see feature_test_macros(7)): mincore():
_BSD_SOURCE || _SVID_SOURCE mincore() returns a vector that
indicates whether pages of the calling process's virtual memory
are resident in core (RAM), and so will not cause a disk access
(page fault) if referenced. The kernel returns residency
information about the pages starting at the address addr, and
continuing for length bytes. The addr argument must be a
multiple of the system page size. The length argument need not
be a multiple of the page size, but since residency information
is returned for whole pages, length is effectively rounded up to
the next multiple of the page size. One may obtain the page size
(PAGE_SIZE) using sysconf(_SC_PAGESIZE). The vec argument must
point to an array containing at least (length+PAGE_SIZE-1) /
PAGE_SIZE bytes. On return, the l