[PATCH] Adds sys_set_mempolicy() in include/linux/syscalls.h

From: Eric Dumazet
Date: Tue Sep 20 2005 - 16:46:39 EST


Andi Kleen a Ãcrit :

> On Tuesday 20 September 2005 11:47, Eric Dumazet wrote:
>
>
>
> I would prefer if random code didn't mess with mempolicy internals
> like this. Better just call sys_set_mempolicy()
> -Andi
>
>


OK but this prior patch seems necessary :

- Adds sys_set_mempolicy() in include/linux/syscalls.h

Signed-off-by: Eric Dumazet <dada1@xxxxxxxxxxxxx>



--- linux-2.6/include/linux/syscalls.h 2005-09-06 01:20:21.000000000 +0200
+++ linux-2.6-ed/include/linux/syscalls.h 2005-09-20 23:43:07.000000000 +0200
@@ -508,5 +508,7 @@

asmlinkage long sys_ioprio_set(int which, int who, int ioprio);
asmlinkage long sys_ioprio_get(int which, int who);
+asmlinkage long sys_set_mempolicy(int mode, unsigned long __user *nmask,
+ unsigned long maxnode);

#endif