subpage_prot(2) System Calls Manual subpage_prot(2) subpage_prot - LIBRARY Standard C library (libc, -lc) #include /* SYS_* */ #include int syscall(SYS_subpage_prot, unsigned long addr, unsigned long len, uint32_t *map); Note: glibc provides no wrapper for subpage_prot(), necessitating the use of syscall(2). ( PowerPC) subpage_prot() 4 , 64 . , addr len . 64- . , map. 4- 2 ; , 32- 16 4- 64- ( 32- , map, 64- , len). 2- : 0 -- , 1 -- , 2 3 -- . subpage_prot() 0. , . EFAULT , map, . EINVAL addr len. , , , . ENOMEM . Linux. Linux 2.6.25 (PowerPC). The system call is provided only if the kernel is configured with CONFIG_PPC_64K_PAGES. ( 64- ); , 0 2- , . , 64- PowerPC. , ( x86), (MMU) ( MMU , , , ). , . , (PTE) Linux PTE, Linux PTE . 4- , 64- ( 64- ). . mprotect(2), syscall(2) Documentation/admin-guide/mm/hugetlbpage.rst Linux Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . subpage_prot(2)