Lines Matching defs:bytecount
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)
64 if (bytecount > LDT_ENTRY_SIZE*LDT_ENTRIES)
65 bytecount = LDT_ENTRY_SIZE*LDT_ENTRIES;
66 err = bytecount;
71 if (size > bytecount)
72 size = bytecount;
75 bytecount -= size;
79 for (i=0; i<ldt->entry_count/LDT_ENTRIES_PER_PAGE && bytecount;
82 if (size > bytecount)
83 size = bytecount;
88 bytecount -= size;
94 if (bytecount == 0 || err == -EFAULT)
97 if (clear_user(ptr, bytecount))
104 static int read_default_ldt(void __user * ptr, unsigned long bytecount)
108 if (bytecount > 5*LDT_ENTRY_SIZE)
109 bytecount = 5*LDT_ENTRY_SIZE;
111 err = bytecount;
117 if (clear_user(ptr, bytecount))
123 static int write_ldt(void __user * ptr, unsigned long bytecount, int func)
133 if (bytecount != sizeof(ldt_info))
210 unsigned long bytecount)
216 ret = read_ldt(ptr, bytecount);
220 ret = write_ldt(ptr, bytecount, func);
223 ret = read_default_ldt(ptr, bytecount);
376 unsigned long , bytecount)
379 return (unsigned int)do_modify_ldt_skas(func, ptr, bytecount);