[FYI/PATCH 1/4] add syscall declarations used by spufs

Utz Bacher utz.bacher at de.ibm.com
Fri Feb 17 16:36:23 EST 2006


This adds some syscall declarations used for spufs that were missing. It
applies on 2.6.15 and 2.6.15.4. I didn't see that Arnd posted it already;
this is for folks who want to build something right now, while Arnd might
revisit this some time when he's back.

From: Arnd Bergmann <arndb at de.ibm.com>
Signed-off-by: Utz Bacher <utz.bacher at de.ibm.com>

Index: linux-2.6.16-rc/include/linux/syscalls.h
===================================================================
--- linux-2.6.16-rc.orig/include/linux/syscalls.h
+++ linux-2.6.16-rc/include/linux/syscalls.h
@@ -511,7 +511,21 @@ asmlinkage long sys_ioprio_set(int which
  asmlinkage long sys_ioprio_get(int which, int who);
  asmlinkage long sys_set_mempolicy(int mode, unsigned long __user *nmask,
  					unsigned long maxnode);
+asmlinkage long sys_mbind(unsigned long start, unsigned long len,
+				unsigned long mode,
+				unsigned long __user *nmask,
+				unsigned long maxnode,
+				unsigned flags);
+asmlinkage long sys_get_mempolicy(int __user *policy,
+				unsigned long __user *nmask,
+				unsigned long maxnode,
+				unsigned long addr, unsigned long flags);

+asmlinkage long sys_inotify_init(void);
+asmlinkage long sys_inotify_add_watch(int fd, const char __user *path,
+					u32 mask);
+asmlinkage long sys_inotify_rm_watch(int fd, u32 wd);
+
  asmlinkage long sys_spu_run(int fd, __u32 __user *unpc,
  				 __u32 __user *ustatus);
  asmlinkage long sys_spu_create(const char __user *name,
Index: linux-2.6.16-rc/fs/inotify.c
===================================================================
--- linux-2.6.16-rc.orig/fs/inotify.c
+++ linux-2.6.16-rc/fs/inotify.c
@@ -33,6 +33,7 @@
  #include <linux/list.h>
  #include <linux/writeback.h>
  #include <linux/inotify.h>
+#include <linux/syscalls.h>

  #include <asm/ioctls.h>




More information about the Linuxppc64-dev mailing list