Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin

From
Arnd Bergmann <arnd@kernel.org>
Date
2021-02-07 21:52:17
Also in
linux-arm-kernel, linux-iommu, linux-mm, lkml
Reply to
Zhou Wang, 2021-02-07
On Sun, Feb 7, 2021 at 9:18 AM Zhou Wang [off-list ref] wrote:
quoted hunk ↗ jump to hunk
diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h
index cccfbbe..3f49529 100644
--- a/arch/arm64/include/asm/unistd32.h
+++ b/arch/arm64/include/asm/unistd32.h
@@ -891,6 +891,8 @@ __SYSCALL(__NR_faccessat2, sys_faccessat2)
 __SYSCALL(__NR_process_madvise, sys_process_madvise)
 #define __NR_epoll_pwait2 441
 __SYSCALL(__NR_epoll_pwait2, compat_sys_epoll_pwait2)
+#define __NR_mempinfd 442
+__SYSCALL(__NR_mempinfd, sys_mempinfd)
This adds a compat syscall for 32-bit tasks running on arm64 without adding
the same for the native arch/arm syscall table. Those two need to always
stay synchronized. In fact, new system call should ideally get assigned
on all architectures at the same time, with the same number (or +110
on arch/alpha).

         Arnd
Thread (33 messages) 33 messages, 9 authors, last reply 2021-02-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help