mincore(2) System Calls Manual mincore(2) mincore - , C (libc, -lc) #include int mincore(size_t length; void addr[length], size_t length, unsigned char *vec); glibc (. feature_test_macros(7)): mincore(): glibc 2.19: _DEFAULT_SOURCE glibc 2.19 : _BSD_SOURCE || _SVID_SOURCE mincore() , , (core, RAM) . , addr length . addr . length , , length , . (PAGE_SIZE) sysconf(_SC_PAGESIZE). vec (length+PAGE_SIZE-1) / PAGE_SIZE . , , , . ( ; .) , , vec, : , , , vec . On success, mincore() returns zero. On error, -1 is returned, and errno is set to indicate the error. EAGAIN . EFAULT vec . EINVAL addr . ENOMEM length (TASK_SIZE - addr). ( , length , .) Linux 2.6.11 EINVAL. ENOMEM addr addr + length . . SunOS 4.1, 4.4BSD, FreeBSD 2.2, Solaris 8, Linux 2.3.99pre1, glibc 2.2, NetBSD 1.5, OpenBSD 2.9, AIX 5.1. Before Linux 2.6.21, mincore() did not return correct information for MAP_PRIVATE mappings, or for nonlinear mappings (established using remap_file_pages(2)). fincore(1), madvise(2), mlock(2), mmap(2), posix_fadvise(2), posix_madvise(3) () aereiae , Alexey , Azamat Hackimov , Dmitriy S. Seregin , Dmitry Bolkhovskikh , ITriskTI , Max Is , Yuri Kozlov , ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () . Linux man-pages 6.18 16 2026 . mincore(2)