Skip to contentSkip to conversation

syscall readahead

PATCH In review Kirill A. Shutemov 2 participants 2 messages Feb 19, 2007 – Feb 23, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscall readahead

Patch from Debian patchset in the attachment

syscall.c renamed from syscall.c.orig +2 -1
@@ -3947,7 +3956,8 @@ long do_syscall(void *cpu_env, int num, 
         ret = get_errno(gettid());
         break;
     case TARGET_NR_readahead:
-        goto unimplemented;
+        ret = get_errno(readahead((int)arg1, (off64_t)arg2, (size_t)arg3));
+        break;
 #ifdef TARGET_NR_setxattr
     case TARGET_NR_setxattr:
     case TARGET_NR_lsetxattr:
#1 lore raw

syscall.c long do_syscall(void *cpu_env, int num, · line 3960

Quoted 11 lines · Kirill A. Shutemov

Patch from Debian patchset in the attachment

syscall.c renamed from syscall.c.orig +2 -1
@@ -3947,7 +3956,8 @@ long do_syscall(void *cpu_env, int num, 
         ret = get_errno(gettid());
         break;
     case TARGET_NR_readahead:
-        goto unimplemented;
+        ret = get_errno(readahead((int)arg1, (off64_t)arg2, (size_t)arg3));
+        break;

arg2 is a (off64_t *), I figure it needs locking.

Thiemo