remap_file_pages(2) System Calls Manual remap_file_pages(2) remap_file_pages - C (libc, -lc) #define _GNU_SOURCE /* feature_test_macros(7) */ #include [[deprecated]] int remap_file_pages(void addr[.size], size_t size, int prot, size_t pgoff, int flags); : , Linux 3.16, . Linux 4.0 . , , . - , , . - 32- , 64- . remap_file_pages() , , . remap_file_pages() mmap(2) , VMA ( ). : 1. ( ) mmap(2). MAP_SHARED. 2. remap_file_pages(). . pgoff size , : pgoff , ; size . addr . -, , . addr , mmap(2). -, addr , , pgoff size. , addr size, . , , . prot 0. flags , mmap(2), , MAP_NONBLOCK, . On success, remap_file_pages() returns 0. On error, -1 is returned, and errno is set to indicate the error. EINVAL addr , MAP_SHARED. EINVAL addr, size, prot pgoff. Linux. Linux 2.5.46, glibc 2.3.3. Linux 2.6.23, remap_file_pages() , tmpfs(5), hugetlbfs ramfs. remap_file_pages() mmap(2), . getpagesize(2), mmap(2), mmap2(2), mprotect(2), mremap(2), msync(2) () aereiae , Azamat Hackimov , Dmitriy S. Seregin , Katrin Kutepova , Lockal , Yuri Kozlov , ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . remap_file_pages(2)