Jelajahi Sumber

bits/syscall.h: add process_madvise from linux v5.10

mainly added to linux to allow a central process management service in
android to give MADV_COLD|PAGEOUT hints for other processes, see

  linux commit ecb8ac8b1f146915aa6b96449b66dd48984caacc
  mm/madvise: introduce process_madvise() syscall: an external memory
  hinting API
Szabolcs Nagy 4 tahun lalu
induk
melakukan
fd285f9dec

+ 1 - 0
arch/aarch64/bits/syscall.h.in

@@ -293,4 +293,5 @@
 #define __NR_openat2		437
 #define __NR_pidfd_getfd	438
 #define __NR_faccessat2		439
+#define __NR_process_madvise	440
 

+ 1 - 0
arch/arm/bits/syscall.h.in

@@ -393,6 +393,7 @@
 #define __NR_openat2		437
 #define __NR_pidfd_getfd	438
 #define __NR_faccessat2		439
+#define __NR_process_madvise	440
 
 #define __ARM_NR_breakpoint	0x0f0001
 #define __ARM_NR_cacheflush	0x0f0002

+ 1 - 0
arch/i386/bits/syscall.h.in

@@ -430,4 +430,5 @@
 #define __NR_openat2		437
 #define __NR_pidfd_getfd	438
 #define __NR_faccessat2		439
+#define __NR_process_madvise	440
 

+ 1 - 0
arch/m68k/bits/syscall.h.in

@@ -410,3 +410,4 @@
 #define __NR_openat2		437
 #define __NR_pidfd_getfd	438
 #define __NR_faccessat2		439
+#define __NR_process_madvise	440

+ 1 - 0
arch/microblaze/bits/syscall.h.in

@@ -431,4 +431,5 @@
 #define __NR_openat2		437
 #define __NR_pidfd_getfd	438
 #define __NR_faccessat2		439
+#define __NR_process_madvise	440
 

+ 1 - 0
arch/mips/bits/syscall.h.in

@@ -412,4 +412,5 @@
 #define __NR_openat2		4437
 #define __NR_pidfd_getfd	4438
 #define __NR_faccessat2		4439
+#define __NR_process_madvise	4440
 

+ 1 - 0
arch/mips64/bits/syscall.h.in

@@ -342,4 +342,5 @@
 #define __NR_openat2		5437
 #define __NR_pidfd_getfd	5438
 #define __NR_faccessat2		5439
+#define __NR_process_madvise	5440
 

+ 1 - 0
arch/mipsn32/bits/syscall.h.in

@@ -366,4 +366,5 @@
 #define __NR_openat2		6437
 #define __NR_pidfd_getfd	6438
 #define __NR_faccessat2		6439
+#define __NR_process_madvise	6440
 

+ 1 - 0
arch/or1k/bits/syscall.h.in

@@ -315,4 +315,5 @@
 #define __NR_openat2		437
 #define __NR_pidfd_getfd	438
 #define __NR_faccessat2		439
+#define __NR_process_madvise	440
 

+ 1 - 0
arch/powerpc/bits/syscall.h.in

@@ -419,4 +419,5 @@
 #define __NR_openat2		437
 #define __NR_pidfd_getfd	438
 #define __NR_faccessat2		439
+#define __NR_process_madvise	440
 

+ 1 - 0
arch/powerpc64/bits/syscall.h.in

@@ -391,4 +391,5 @@
 #define __NR_openat2		437
 #define __NR_pidfd_getfd	438
 #define __NR_faccessat2		439
+#define __NR_process_madvise	440
 

+ 1 - 0
arch/riscv64/bits/syscall.h.in

@@ -293,6 +293,7 @@
 #define __NR_openat2		437
 #define __NR_pidfd_getfd	438
 #define __NR_faccessat2		439
+#define __NR_process_madvise	440
 
 #define __NR_sysriscv __NR_arch_specific_syscall
 #define __NR_riscv_flush_icache (__NR_sysriscv + 15)

+ 1 - 0
arch/s390x/bits/syscall.h.in

@@ -356,4 +356,5 @@
 #define __NR_openat2		437
 #define __NR_pidfd_getfd	438
 #define __NR_faccessat2		439
+#define __NR_process_madvise	440
 

+ 1 - 0
arch/sh/bits/syscall.h.in

@@ -403,4 +403,5 @@
 #define __NR_openat2		437
 #define __NR_pidfd_getfd	438
 #define __NR_faccessat2		439
+#define __NR_process_madvise	440
 

+ 1 - 0
arch/x32/bits/syscall.h.in

@@ -302,6 +302,7 @@
 #define __NR_openat2		(0x40000000 + 437)
 #define __NR_pidfd_getfd	(0x40000000 + 438)
 #define __NR_faccessat2		(0x40000000 + 439)
+#define __NR_process_madvise	(0x40000000 + 440)
 
 
 #define __NR_rt_sigaction (0x40000000 + 512)

+ 1 - 0
arch/x86_64/bits/syscall.h.in

@@ -349,4 +349,5 @@
 #define __NR_openat2		437
 #define __NR_pidfd_getfd	438
 #define __NR_faccessat2		439
+#define __NR_process_madvise	440