[PATCH -mm 5/5] New system call, unshare (x86_64)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[PATCH -mm 5/5] unshare system call: System call registration for x86_64

Signed-off-by: Janak Desai


 arch/x86_64/ia32/ia32entry.S     |    1 +
 include/asm-x86_64/ia32_unistd.h |    3 ++-
 include/asm-x86_64/unistd.h      |    4 +++-
 3 files changed, 6 insertions(+), 2 deletions(-)


diff -Naurp 2.6.15-rc5-mm1/arch/x86_64/ia32/ia32entry.S
2.6.15-rc5-mm1+unshare-x86_64/arch/x86_64/ia32/ia32entry.S
--- 2.6.15-rc5-mm1/arch/x86_64/ia32/ia32entry.S	2005-10-28
00:02:08.000000000 +0000
+++
2.6.15-rc5-mm1+unshare-x86_64/arch/x86_64/ia32/ia32entry.S	2005-12-08
18:19:14.000000000 +0000
@@ -643,6 +643,7 @@ ia32_sys_call_table:
 	.quad sys_inotify_init
 	.quad sys_inotify_add_watch
 	.quad sys_inotify_rm_watch
+	.quad sys_unshare
 ia32_syscall_end:		
 	.rept IA32_NR_syscalls-(ia32_syscall_end-ia32_sys_call_table)/8
 		.quad ni_syscall
diff -Naurp 2.6.15-rc5-mm1/include/asm-x86_64/ia32_unistd.h
2.6.15-rc5-mm1+unshare-x86_64/include/asm-x86_64/ia32_unistd.h
--- 2.6.15-rc5-mm1/include/asm-x86_64/ia32_unistd.h	2005-10-28
00:02:08.000000000 +0000
+++
2.6.15-rc5-mm1+unshare-x86_64/include/asm-x86_64/ia32_unistd.h	2005-12-08 18:14:28.000000000 +0000
@@ -299,7 +299,8 @@
 #define __NR_ia32_inotify_init		291
 #define __NR_ia32_inotify_add_watch	292
 #define __NR_ia32_inotify_rm_watch	293
+#define __NR_ia32_unshare		294
 
-#define IA32_NR_syscalls 294	/* must be > than biggest syscall! */
+#define IA32_NR_syscalls 295	/* must be > than biggest syscall! */
 
 #endif /* _ASM_X86_64_IA32_UNISTD_H_ */
diff -Naurp 2.6.15-rc5-mm1/include/asm-x86_64/unistd.h
2.6.15-rc5-mm1+unshare-x86_64/include/asm-x86_64/unistd.h
--- 2.6.15-rc5-mm1/include/asm-x86_64/unistd.h	2005-12-06
21:06:20.000000000 +0000
+++ 2.6.15-rc5-mm1+unshare-x86_64/include/asm-x86_64/unistd.h	2005-12-08
18:15:48.000000000 +0000
@@ -571,8 +571,10 @@ __SYSCALL(__NR_inotify_init, sys_inotify
 __SYSCALL(__NR_inotify_add_watch, sys_inotify_add_watch)
 #define __NR_inotify_rm_watch	255
 __SYSCALL(__NR_inotify_rm_watch, sys_inotify_rm_watch)
+#define __NR_unshare		256
+__SYSCALL(__NR_unshare, sys_unshare)
 
-#define __NR_syscall_max __NR_inotify_rm_watch
+#define __NR_syscall_max __NR_unshare
 #ifndef __NO_STUBS
 
 /* user-visible error numbers are in the range -1 - -4095 */


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux