System Interface Guide

mincore(2)

mincore(2) determines the residency of the memory pages in the address space covered by mappings in the specified range. Because the status of a page can change after mincore checks it, but before mincore returns the data, returned information can be outdated. Only locked pages are guaranteed to remain in memory