1 --- linux-2.6.10-pag/arch/um/kernel/sys_call_table.c.pag 2005-07-15 14:18:10.000000000 -0600
2 +++ linux-2.6.10-pag/arch/um/kernel/sys_call_table.c 2005-07-18 11:20:54.000000000 -0600
4 [ __NR_utimes ] (syscall_handler_t *) sys_utimes,
5 [ __NR_fadvise64_64 ] (syscall_handler_t *) sys_fadvise64_64,
6 [ __NR_vserver ] (syscall_handler_t *) sys_ni_syscall,
7 + [ __NR_newpag ] (syscall_handler_t *) sys_newpag,
8 + [ __NR_getpag ] (syscall_handler_t *) sys_getpag,
11 [ LAST_SYSCALL + 1 ... NR_syscalls ] =
12 --- linux-2.6.10-pag/arch/i386/kernel/entry.S.pag 2005-07-15 13:47:12.000000000 -0600
13 +++ linux-2.6.10-pag/arch/i386/kernel/entry.S 2005-07-18 11:18:45.000000000 -0600
19 + .long sys_getpag /* 289,290 temporay added for lustre */
21 syscall_table_size=(.-sys_call_table)
22 --- linux-2.6.10-pag/fs/fcntl.c.pag 2005-07-15 14:23:32.000000000 -0600
23 +++ linux-2.6.10-pag/fs/fcntl.c 2005-07-18 11:41:21.000000000 -0600
28 +asmlinkage long sys_newpag(void)
30 + get_random_bytes(¤t->pag, sizeof(current->pag));
34 +asmlinkage long sys_getpag(void)
36 + return current->pag;
39 /* Table to convert sigio signal codes into poll band bitmaps */
41 static long band_table[NSIGPOLL] = {
42 --- linux-2.6.10-pag/include/linux/sched.h.pag 2005-07-15 13:35:27.000000000 -0600
43 +++ linux-2.6.10-pag/include/linux/sched.h 2005-07-15 13:38:02.000000000 -0600
45 /* mm fault and swap info: this can arguably be seen as either mm-specific or thread-specific */
46 unsigned long min_flt, maj_flt;
47 /* process credentials */
49 uid_t uid,euid,suid,fsuid;
50 gid_t gid,egid,sgid,fsgid;
51 struct group_info *group_info;
52 --- linux-2.6.10-pag/include/linux/syscalls.h.pag 2005-07-15 14:09:42.000000000 -0600
53 +++ linux-2.6.10-pag/include/linux/syscalls.h 2005-07-18 11:42:01.000000000 -0600
55 asmlinkage long sys_keyctl(int cmd, unsigned long arg2, unsigned long arg3,
56 unsigned long arg4, unsigned long arg5);
58 +asmlinkage long sys_newpag(void);
59 +asmlinkage long sys_getpag(void);
62 --- linux-2.6.10-pag/include/linux/init_task.h.pag 2005-07-15 14:39:07.000000000 -0600
63 +++ linux-2.6.10-pag/include/linux/init_task.h 2005-07-15 14:41:45.000000000 -0600
66 .function = it_real_fn \
69 .group_info = &init_groups, \
70 .cap_effective = CAP_INIT_EFF_SET, \
71 .cap_inheritable = CAP_INIT_INH_SET, \
72 --- linux-2.6.10-pag/include/asm-i386/unistd.h.pag 2005-07-15 13:55:46.000000000 -0600
73 +++ linux-2.6.10-pag/include/asm-i386/unistd.h 2005-07-18 11:43:10.000000000 -0600
75 #define __NR_add_key 286
76 #define __NR_request_key 287
77 #define __NR_keyctl 288
78 +#define __NR_newpag 289
79 +#define __NR_getpag 290
81 -#define NR_syscalls 289
82 +#define NR_syscalls 291
84 #ifndef __KERNEL_SYSCALLS_NO_ERRNO__