Lines Matching defs:ptr
16 static inline int modify_ldt (int func, void *ptr, unsigned long bytecount)
18 return syscall(__NR_modify_ldt, func, ptr, bytecount);
56 static int read_ldt(void __user * ptr, unsigned long bytecount)
73 if (copy_to_user(ptr, ldt->u.entries, size))
76 ptr += size;
84 if (copy_to_user(ptr, ldt->u.pages[i], size)) {
89 ptr += size;
97 if (clear_user(ptr, bytecount))
104 static int read_default_ldt(void __user * ptr, unsigned long bytecount)
117 if (clear_user(ptr, bytecount))
123 static int write_ldt(void __user * ptr, unsigned long bytecount, int func)
136 if (copy_from_user(&ldt_info, ptr, sizeof(ldt_info)))
209 static long do_modify_ldt_skas(int func, void __user *ptr,
216 ret = read_ldt(ptr, bytecount);
220 ret = write_ldt(ptr, bytecount, func);
223 ret = read_default_ldt(ptr, bytecount);
375 SYSCALL_DEFINE3(modify_ldt, int , func , void __user * , ptr ,
379 return (unsigned int)do_modify_ldt_skas(func, ptr, bytecount);