Lines Matching refs:from
3183 int copy_siginfo_to_user(siginfo_t __user *to, const kernel_siginfo_t *from) in copy_siginfo_to_user() argument
3186 if (copy_to_user(to, from , sizeof(struct kernel_siginfo))) in copy_siginfo_to_user()
3194 const siginfo_t __user *from) in post_copy_siginfo_from_user() argument
3197 char __user *expansion = si_expansion(from); in post_copy_siginfo_from_user()
3217 const siginfo_t __user *from) in __copy_siginfo_from_user() argument
3219 if (copy_from_user(to, from, sizeof(struct kernel_siginfo))) in __copy_siginfo_from_user()
3222 return post_copy_siginfo_from_user(to, from); in __copy_siginfo_from_user()
3225 int copy_siginfo_from_user(kernel_siginfo_t *to, const siginfo_t __user *from) in copy_siginfo_from_user() argument
3227 if (copy_from_user(to, from, sizeof(struct kernel_siginfo))) in copy_siginfo_from_user()
3229 return post_copy_siginfo_from_user(to, from); in copy_siginfo_from_user()
3234 const struct kernel_siginfo *from) in copy_siginfo_to_user32() argument
3237 return __copy_siginfo_to_user32(to, from, in_x32_syscall()); in copy_siginfo_to_user32()
3240 const struct kernel_siginfo *from, bool x32_ABI) in __copy_siginfo_to_user32() argument
3246 new.si_signo = from->si_signo; in __copy_siginfo_to_user32()
3247 new.si_errno = from->si_errno; in __copy_siginfo_to_user32()
3248 new.si_code = from->si_code; in __copy_siginfo_to_user32()
3249 switch(siginfo_layout(from->si_signo, from->si_code)) { in __copy_siginfo_to_user32()
3251 new.si_pid = from->si_pid; in __copy_siginfo_to_user32()
3252 new.si_uid = from->si_uid; in __copy_siginfo_to_user32()
3255 new.si_tid = from->si_tid; in __copy_siginfo_to_user32()
3256 new.si_overrun = from->si_overrun; in __copy_siginfo_to_user32()
3257 new.si_int = from->si_int; in __copy_siginfo_to_user32()
3260 new.si_band = from->si_band; in __copy_siginfo_to_user32()
3261 new.si_fd = from->si_fd; in __copy_siginfo_to_user32()
3264 new.si_addr = ptr_to_compat(from->si_addr); in __copy_siginfo_to_user32()
3266 new.si_trapno = from->si_trapno; in __copy_siginfo_to_user32()
3270 new.si_addr = ptr_to_compat(from->si_addr); in __copy_siginfo_to_user32()
3272 new.si_trapno = from->si_trapno; in __copy_siginfo_to_user32()
3274 new.si_addr_lsb = from->si_addr_lsb; in __copy_siginfo_to_user32()
3277 new.si_addr = ptr_to_compat(from->si_addr); in __copy_siginfo_to_user32()
3279 new.si_trapno = from->si_trapno; in __copy_siginfo_to_user32()
3281 new.si_lower = ptr_to_compat(from->si_lower); in __copy_siginfo_to_user32()
3282 new.si_upper = ptr_to_compat(from->si_upper); in __copy_siginfo_to_user32()
3285 new.si_addr = ptr_to_compat(from->si_addr); in __copy_siginfo_to_user32()
3287 new.si_trapno = from->si_trapno; in __copy_siginfo_to_user32()
3289 new.si_pkey = from->si_pkey; in __copy_siginfo_to_user32()
3292 new.si_pid = from->si_pid; in __copy_siginfo_to_user32()
3293 new.si_uid = from->si_uid; in __copy_siginfo_to_user32()
3294 new.si_status = from->si_status; in __copy_siginfo_to_user32()
3297 new._sifields._sigchld_x32._utime = from->si_utime; in __copy_siginfo_to_user32()
3298 new._sifields._sigchld_x32._stime = from->si_stime; in __copy_siginfo_to_user32()
3302 new.si_utime = from->si_utime; in __copy_siginfo_to_user32()
3303 new.si_stime = from->si_stime; in __copy_siginfo_to_user32()
3307 new.si_pid = from->si_pid; in __copy_siginfo_to_user32()
3308 new.si_uid = from->si_uid; in __copy_siginfo_to_user32()
3309 new.si_int = from->si_int; in __copy_siginfo_to_user32()
3312 new.si_call_addr = ptr_to_compat(from->si_call_addr); in __copy_siginfo_to_user32()
3313 new.si_syscall = from->si_syscall; in __copy_siginfo_to_user32()
3314 new.si_arch = from->si_arch; in __copy_siginfo_to_user32()
3325 const struct compat_siginfo *from) in post_copy_siginfo_from_user32() argument
3328 to->si_signo = from->si_signo; in post_copy_siginfo_from_user32()
3329 to->si_errno = from->si_errno; in post_copy_siginfo_from_user32()
3330 to->si_code = from->si_code; in post_copy_siginfo_from_user32()
3331 switch(siginfo_layout(from->si_signo, from->si_code)) { in post_copy_siginfo_from_user32()
3333 to->si_pid = from->si_pid; in post_copy_siginfo_from_user32()
3334 to->si_uid = from->si_uid; in post_copy_siginfo_from_user32()
3337 to->si_tid = from->si_tid; in post_copy_siginfo_from_user32()
3338 to->si_overrun = from->si_overrun; in post_copy_siginfo_from_user32()
3339 to->si_int = from->si_int; in post_copy_siginfo_from_user32()
3342 to->si_band = from->si_band; in post_copy_siginfo_from_user32()
3343 to->si_fd = from->si_fd; in post_copy_siginfo_from_user32()
3346 to->si_addr = compat_ptr(from->si_addr); in post_copy_siginfo_from_user32()
3348 to->si_trapno = from->si_trapno; in post_copy_siginfo_from_user32()
3352 to->si_addr = compat_ptr(from->si_addr); in post_copy_siginfo_from_user32()
3354 to->si_trapno = from->si_trapno; in post_copy_siginfo_from_user32()
3356 to->si_addr_lsb = from->si_addr_lsb; in post_copy_siginfo_from_user32()
3359 to->si_addr = compat_ptr(from->si_addr); in post_copy_siginfo_from_user32()
3361 to->si_trapno = from->si_trapno; in post_copy_siginfo_from_user32()
3363 to->si_lower = compat_ptr(from->si_lower); in post_copy_siginfo_from_user32()
3364 to->si_upper = compat_ptr(from->si_upper); in post_copy_siginfo_from_user32()
3367 to->si_addr = compat_ptr(from->si_addr); in post_copy_siginfo_from_user32()
3369 to->si_trapno = from->si_trapno; in post_copy_siginfo_from_user32()
3371 to->si_pkey = from->si_pkey; in post_copy_siginfo_from_user32()
3374 to->si_pid = from->si_pid; in post_copy_siginfo_from_user32()
3375 to->si_uid = from->si_uid; in post_copy_siginfo_from_user32()
3376 to->si_status = from->si_status; in post_copy_siginfo_from_user32()
3379 to->si_utime = from->_sifields._sigchld_x32._utime; in post_copy_siginfo_from_user32()
3380 to->si_stime = from->_sifields._sigchld_x32._stime; in post_copy_siginfo_from_user32()
3384 to->si_utime = from->si_utime; in post_copy_siginfo_from_user32()
3385 to->si_stime = from->si_stime; in post_copy_siginfo_from_user32()
3389 to->si_pid = from->si_pid; in post_copy_siginfo_from_user32()
3390 to->si_uid = from->si_uid; in post_copy_siginfo_from_user32()
3391 to->si_int = from->si_int; in post_copy_siginfo_from_user32()
3394 to->si_call_addr = compat_ptr(from->si_call_addr); in post_copy_siginfo_from_user32()
3395 to->si_syscall = from->si_syscall; in post_copy_siginfo_from_user32()
3396 to->si_arch = from->si_arch; in post_copy_siginfo_from_user32()
3405 struct compat_siginfo from; in __copy_siginfo_from_user32() local
3407 if (copy_from_user(&from, ufrom, sizeof(struct compat_siginfo))) in __copy_siginfo_from_user32()
3410 from.si_signo = signo; in __copy_siginfo_from_user32()
3411 return post_copy_siginfo_from_user32(to, &from); in __copy_siginfo_from_user32()
3417 struct compat_siginfo from; in copy_siginfo_from_user32() local
3419 if (copy_from_user(&from, ufrom, sizeof(struct compat_siginfo))) in copy_siginfo_from_user32()
3422 return post_copy_siginfo_from_user32(to, &from); in copy_siginfo_from_user32()