/linux/arch/x86/um/ |
H A D | tls_32.c | 24 static int do_set_thread_area(struct user_desc *info) in do_set_thread_area() 59 static inline void clear_user_desc(struct user_desc* info) in clear_user_desc() 185 static int set_tls_entry(struct task_struct* task, struct user_desc *info, in set_tls_entry() 202 struct user_desc info; in arch_set_tls() 219 static int get_tls_entry(struct task_struct *task, struct user_desc *info, in get_tls_entry() 255 SYSCALL_DEFINE1(set_thread_area, struct user_desc __user *, user_desc) in SYSCALL_DEFINE1() argument 257 struct user_desc info; in SYSCALL_DEFINE1() 263 if (copy_from_user(&info, user_desc, sizeof(info))) in SYSCALL_DEFINE1() 274 if (put_user(idx, &user_desc->entry_number)) in SYSCALL_DEFINE1() 290 struct user_desc __user *user_desc) in ptrace_set_thread_area() argument [all …]
|
/linux/fs/orangefs/ |
H A D | orangefs-bufmap.c | 216 orangefs_bufmap_alloc(struct ORANGEFS_dev_map_desc *user_desc) in orangefs_bufmap_alloc() argument 224 bufmap->total_size = user_desc->total_size; in orangefs_bufmap_alloc() 225 bufmap->desc_count = user_desc->count; in orangefs_bufmap_alloc() 226 bufmap->desc_size = user_desc->size; in orangefs_bufmap_alloc() 261 struct ORANGEFS_dev_map_desc *user_desc) in orangefs_bufmap_map() argument 267 ret = pin_user_pages_fast((unsigned long)user_desc->ptr, in orangefs_bufmap_map() 296 (user_desc->ptr + (i * pages_per_desc * PAGE_SIZE)); in orangefs_bufmap_map() 310 int orangefs_bufmap_initialize(struct ORANGEFS_dev_map_desc *user_desc) in orangefs_bufmap_initialize() argument 318 user_desc->ptr, in orangefs_bufmap_initialize() 319 user_desc->size, in orangefs_bufmap_initialize() [all …]
|
H A D | orangefs-bufmap.h | 15 int orangefs_bufmap_initialize(struct ORANGEFS_dev_map_desc *user_desc);
|
H A D | devorangefs-req.c | 596 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/arch/x86/kernel/ |
H A D | tls.c | 33 static bool tls_desc_okay(const struct user_desc *info) in tls_desc_okay() 86 const struct user_desc *info, int n) in set_tls_desc() 116 struct user_desc __user *u_info, in do_set_thread_area() 119 struct user_desc info; in do_set_thread_area() 186 SYSCALL_DEFINE1(set_thread_area, struct user_desc __user *, u_info) in SYSCALL_DEFINE1() 196 static void fill_user_desc(struct user_desc *info, int idx, in fill_user_desc() 216 struct user_desc __user *u_info) in do_get_thread_area() 218 struct user_desc info; in do_get_thread_area() 238 SYSCALL_DEFINE1(get_thread_area, struct user_desc __user *, u_info) in SYSCALL_DEFINE1() 257 struct user_desc v; in regset_tls_get() [all …]
|
H A D | ptrace.c | 827 (struct user_desc __user *)data); in arch_ptrace() 834 (struct user_desc __user *)data, 0); in arch_ptrace() 1337 .size = sizeof(struct user_desc), 1338 .align = sizeof(struct user_desc),
|
H A D | process.c | 132 struct user_desc __user *utls = (struct user_desc __user *)tls; in set_new_tls()
|
H A D | ldt.c | 583 struct user_desc ldt_info; in write_ldt()
|
/linux/tools/testing/selftests/x86/ |
H A D | ldt_gdt.c | 59 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 …]
|
H A D | sigreturn.c | 163 static void add_ldt(const struct user_desc *desc, unsigned short *var, in add_ldt() 183 const struct user_desc code16_desc = { in setup_ldt() 196 const struct user_desc data16_desc = { in setup_ldt() 209 const struct user_desc npcode32_desc = { in setup_ldt() 222 const struct user_desc npdata32_desc = { in setup_ldt() 235 struct user_desc gdt_data16_desc = { in setup_ldt() 260 struct user_desc gdt_npdata32_desc = { in setup_ldt()
|
H A D | fsgsbase_restore.c | 61 struct user_desc desc = { in init_seg() 78 struct user_desc *low_desc = mmap( in init_seg()
|
H A D | fsgsbase.c | 253 struct user_desc desc = { in load_gs() 271 struct user_desc *low_desc = mmap( in load_gs()
|
/linux/arch/x86/include/asm/ |
H A D | ptrace.h | 460 struct user_desc; 462 struct user_desc __user *info); 464 struct user_desc __user *info, int can_allocate);
|
H A D | desc.h | 16 static inline void fill_ldt(struct desc_struct *desc, const struct user_desc *info) in fill_ldt() 366 static inline bool LDT_zero(const struct user_desc *info) in LDT_zero()
|
/linux/arch/x86/include/uapi/asm/ |
H A D | ldt.h | 21 struct user_desc { struct
|
/linux/arch/x86/um/shared/sysdep/ |
H A D | tls.h | 28 typedef struct user_desc user_desc_t;
|
/linux/arch/x86/um/asm/ |
H A D | processor_32.h | 16 struct user_desc tls;
|
/linux/Documentation/filesystems/ |
H A D | orangefs.rst | 279 user_desc is the kernel's copy of the IO buffer's ORANGEFS_dev_map_desc 280 structure. user_desc->ptr points to the IO buffer. 289 bufmap->desc_array[0].uaddr = (user_desc->ptr) + (0 * 1024 * 4096) 296 bufmap->desc_array[9].uaddr = (user_desc->ptr) +
|