Skip to contentSkip to conversation

inotify: add x86-64 syscall numbers

PATCH Andi Kleen 2 participants 2 messages Jul 15, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw
Quoted 4 lines · Robert Love

Andi,

Attached patch adds the inotify syscall numbers to x86-64. Also adds the new ioprio_get() and ioprio_set() calls to the IA32 layer.

It won't work anyways because you forgot to patch the compat sys32_open.

-Andi

#2 lore raw
Quoted 2 lines · Andi Kleen

It won't work anyways because you forgot to patch the compat sys32_open.

Well, "won't work" is a bit harsh, its just one hook. But that was next.

I usually leave per-arch stuff to the arch folks.

Robert Love

Add fsnotify_open() hook to sys32_open() on x86-64.

 arch/x86_64/ia32/sys_ia32.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)
arch/x86_64/ia32/sys_ia32.c +4 -1
diff -urN linux-2.6.13-rc3/arch/x86_64/ia32/sys_ia32.c linux/arch/x86_64/ia32/sys_ia32.c
@@ -61,6 +61,7 @@
 #include <linux/ptrace.h>
 #include <linux/highuid.h>
 #include <linux/vmalloc.h>
+#include <linux/fsnotify.>
 #include <asm/mman.h>
 #include <asm/types.h>
 #include <asm/uaccess.h>
@@ -984,8 +985,10 @@
 			if (IS_ERR(f)) {
 				put_unused_fd(fd); 
 				fd = error;
-			} else
+			} else {
+				fsnotify_open(f->f_dentry);
 				fd_install(fd, f);
+			}
 		}
 		putname(tmp);
 	}