Home
last modified time | relevance | path

Searched refs:user_desc (Results 1 – 21 of 21) sorted by relevance

/Linux-v4.19/arch/x86/kernel/
Dtls.c31 static bool tls_desc_okay(const struct user_desc *info) in tls_desc_okay()
84 const struct user_desc *info, int n) in set_tls_desc()
114 struct user_desc __user *u_info, in do_set_thread_area()
117 struct user_desc info; in do_set_thread_area()
190 SYSCALL_DEFINE1(set_thread_area, struct user_desc __user *, u_info) in SYSCALL_DEFINE1()
200 static void fill_user_desc(struct user_desc *info, int idx, in fill_user_desc()
220 struct user_desc __user *u_info) in do_get_thread_area()
222 struct user_desc info; in do_get_thread_area()
238 SYSCALL_DEFINE1(get_thread_area, struct user_desc __user *, u_info) in SYSCALL_DEFINE1()
259 if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) || in regset_tls_get()
[all …]
Dptrace.c856 (struct user_desc __user *)data); in arch_ptrace()
863 (struct user_desc __user *)data, 0); in arch_ptrace()
1323 .size = sizeof(struct user_desc),
1324 .align = sizeof(struct user_desc),
Dprocess_32.c174 (struct user_desc __user *)tls, 0); in copy_thread_tls()
Dldt.c453 struct user_desc ldt_info; in write_ldt()
Dprocess_64.c346 (struct user_desc __user *)tls, 0); in copy_thread_tls()
/Linux-v4.19/arch/x86/um/
Dtls_32.c23 int do_set_thread_area(struct user_desc *info) in do_set_thread_area()
39 int do_get_thread_area(struct user_desc *info) in do_get_thread_area()
77 static inline void clear_user_desc(struct user_desc* info) in clear_user_desc()
203 static int set_tls_entry(struct task_struct* task, struct user_desc *info, in set_tls_entry()
220 struct user_desc info; in arch_copy_tls()
240 static int get_tls_entry(struct task_struct *task, struct user_desc *info, in get_tls_entry()
279 SYSCALL_DEFINE1(set_thread_area, struct user_desc __user *, user_desc) in SYSCALL_DEFINE1() argument
281 struct user_desc info; in SYSCALL_DEFINE1()
287 if (copy_from_user(&info, user_desc, sizeof(info))) in SYSCALL_DEFINE1()
298 if (put_user(idx, &user_desc->entry_number)) in SYSCALL_DEFINE1()
[all …]
Dldt.c22 struct user_desc *desc, void **addr, int done) in write_ldt_entry()
126 struct user_desc ldt_info; in write_ldt()
300 struct user_desc desc; in init_new_ldt()
/Linux-v4.19/fs/orangefs/
Dorangefs-bufmap.c219 orangefs_bufmap_alloc(struct ORANGEFS_dev_map_desc *user_desc) in orangefs_bufmap_alloc() argument
227 bufmap->total_size = user_desc->total_size; in orangefs_bufmap_alloc()
228 bufmap->desc_count = user_desc->count; in orangefs_bufmap_alloc()
229 bufmap->desc_size = user_desc->size; in orangefs_bufmap_alloc()
265 struct ORANGEFS_dev_map_desc *user_desc) in orangefs_bufmap_map() argument
271 ret = get_user_pages_fast((unsigned long)user_desc->ptr, in orangefs_bufmap_map()
302 (user_desc->ptr + (i * pages_per_desc * PAGE_SIZE)); in orangefs_bufmap_map()
316 int orangefs_bufmap_initialize(struct ORANGEFS_dev_map_desc *user_desc) in orangefs_bufmap_initialize() argument
324 user_desc->ptr, in orangefs_bufmap_initialize()
325 user_desc->size, in orangefs_bufmap_initialize()
[all …]
Dorangefs-bufmap.h15 int orangefs_bufmap_initialize(struct ORANGEFS_dev_map_desc *user_desc);
Ddevorangefs-req.c596 struct ORANGEFS_dev_map_desc user_desc; in dispatch_ioctl_command() local
619 ret = copy_from_user(&user_desc, in dispatch_ioctl_command()
624 return ret ? -EIO : orangefs_bufmap_initialize(&user_desc); in dispatch_ioctl_command()
/Linux-v4.19/arch/x86/um/asm/
Dptrace.h47 struct user_desc;
52 struct user_desc __user *user_desc);
55 struct user_desc __user *user_desc);
71 struct user_desc __user *user_desc) in ptrace_get_thread_area() argument
77 struct user_desc __user *user_desc) in ptrace_set_thread_area() argument
Dprocessor_32.h16 struct user_desc tls;
/Linux-v4.19/tools/testing/selftests/x86/
Dldt_gdt.c59 static struct user_desc *low_user_desc;
60 static struct user_desc *low_user_desc_clear; /* Use to delete GDT entry */
139 static bool install_valid_mode(const struct user_desc *d, uint32_t ar, in install_valid_mode()
142 struct user_desc desc = *d; in install_valid_mode()
189 static bool install_valid(const struct user_desc *desc, uint32_t ar) in install_valid()
202 static void install_invalid(const struct user_desc *desc, bool oldmode) in install_invalid()
223 static int safe_modify_ldt(int func, struct user_desc *ptr, in safe_modify_ldt()
232 static void fail_install(struct user_desc *desc) in fail_install()
246 struct user_desc desc = { in do_simple_tests()
451 const struct user_desc desc = {}; in threadproc()
[all …]
Dsigreturn.c174 static void add_ldt(const struct user_desc *desc, unsigned short *var, in add_ldt()
194 const struct user_desc code16_desc = { in setup_ldt()
207 const struct user_desc data16_desc = { in setup_ldt()
220 const struct user_desc npcode32_desc = { in setup_ldt()
233 const struct user_desc npdata32_desc = { in setup_ldt()
246 struct user_desc gdt_data16_desc = { in setup_ldt()
271 struct user_desc gdt_npdata32_desc = { in setup_ldt()
Dfsgsbase.c219 struct user_desc desc = { in do_unexpected_base()
236 struct user_desc *low_desc = mmap( in do_unexpected_base()
/Linux-v4.19/arch/x86/include/asm/
Dsyscalls.h37 asmlinkage long sys_set_thread_area(struct user_desc __user *);
38 asmlinkage long sys_get_thread_area(struct user_desc __user *);
Dptrace.h284 struct user_desc;
286 struct user_desc __user *info);
288 struct user_desc __user *info, int can_allocate);
Ddesc.h15 static inline void fill_ldt(struct desc_struct *desc, const struct user_desc *info) in fill_ldt()
349 static inline bool LDT_zero(const struct user_desc *info) in LDT_zero()
/Linux-v4.19/arch/x86/include/uapi/asm/
Dldt.h21 struct user_desc { struct
/Linux-v4.19/arch/x86/um/shared/sysdep/
Dtls.h28 typedef struct user_desc user_desc_t;
/Linux-v4.19/Documentation/filesystems/
Dorangefs.txt268 user_desc is the kernel's copy of the IO buffer's ORANGEFS_dev_map_desc
269 structure. user_desc->ptr points to the IO buffer.
276 bufmap->desc_array[0].uaddr = (user_desc->ptr) + (0 * 1024 * 4096)
283 bufmap->desc_array[9].uaddr = (user_desc->ptr) +