Lines Matching refs:__user

36 		      struct compat_msghdr __user *umsg,  in get_compat_msghdr()
37 struct sockaddr __user **save_addr, in get_compat_msghdr()
91 ((void __user *)((char __user *)(cmsg) + sizeof(struct compat_cmsghdr)))
99 (struct compat_cmsghdr __user *)((msg)->msg_control) : \
100 (struct compat_cmsghdr __user *)NULL)
108 static inline struct compat_cmsghdr __user *cmsg_compat_nxthdr(struct msghdr *msg, in cmsg_compat_nxthdr()
109 struct compat_cmsghdr __user *cmsg, int cmsg_len) in cmsg_compat_nxthdr()
111 char __user *ptr = (char __user *)cmsg + CMSG_COMPAT_ALIGN(cmsg_len); in cmsg_compat_nxthdr()
112 if ((unsigned long)(ptr + 1 - (char __user *)msg->msg_control) > in cmsg_compat_nxthdr()
115 return (struct compat_cmsghdr __user *)ptr; in cmsg_compat_nxthdr()
125 struct compat_cmsghdr __user *ucmsg; in cmsghdr_from_user_compat_to_kern()
210 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; in put_cmsg_compat()
266 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; in scm_detach_fds_compat()
270 int __user *cmfptr; in scm_detach_fds_compat()
276 for (i = 0, cmfptr = (int __user *) CMSG_COMPAT_DATA(cm); i < fdmax; i++, cmfptr++) { in scm_detach_fds_compat()
319 struct sock_fprog __user *get_compat_bpf_fprog(char __user *optval) in get_compat_bpf_fprog()
321 struct compat_sock_fprog __user *fprog32 = (struct compat_sock_fprog __user *)optval; in get_compat_bpf_fprog()
322 struct sock_fprog __user *kfprog = compat_alloc_user_space(sizeof(struct sock_fprog)); in get_compat_bpf_fprog()
339 char __user *optval, unsigned int optlen) in do_set_attach_filter()
341 struct sock_fprog __user *kfprog; in do_set_attach_filter()
347 return sock_setsockopt(sock, level, optname, (char __user *)kfprog, in do_set_attach_filter()
352 int optname, char __user *optval, unsigned int optlen) in do_set_sock_timeout()
354 struct compat_timeval __user *up = (struct compat_timeval __user *)optval; in do_set_sock_timeout()
374 char __user *optval, unsigned int optlen) in compat_sock_setsockopt()
388 char __user *optval, unsigned int optlen) in __compat_sys_setsockopt()
415 char __user *, optval, unsigned int, optlen) in COMPAT_SYSCALL_DEFINE5() argument
421 char __user *optval, int __user *optlen) in do_get_sock_timeout()
423 struct compat_timeval __user *up; in do_get_sock_timeout()
428 up = (struct compat_timeval __user *) optval; in do_get_sock_timeout()
450 char __user *optval, int __user *optlen) in compat_sock_getsockopt()
458 int compat_sock_get_timestamp(struct sock *sk, struct timeval __user *userstamp) in compat_sock_get_timestamp()
460 struct compat_timeval __user *ctv; in compat_sock_get_timestamp()
467 ctv = (struct compat_timeval __user *) userstamp; in compat_sock_get_timestamp()
485 int compat_sock_get_timestampns(struct sock *sk, struct timespec __user *userstamp) in compat_sock_get_timestampns()
487 struct compat_timespec __user *ctv; in compat_sock_get_timestampns()
494 ctv = (struct compat_timespec __user *) userstamp; in compat_sock_get_timestampns()
513 char __user *optval, in __compat_sys_getsockopt()
514 int __user *optlen) in __compat_sys_getsockopt()
541 char __user *, optval, int __user *, optlen) in COMPAT_SYSCALL_DEFINE5() argument
575 char __user *optval, unsigned int optlen, in compat_mc_setsockopt() argument
576 int (*setsockopt)(struct sock *, int, int, char __user *, unsigned int)) in compat_mc_setsockopt()
578 char __user *koptval = optval; in compat_mc_setsockopt()
585 struct compat_group_req __user *gr32 = (void *)optval; in compat_mc_setsockopt()
586 struct group_req __user *kgr = in compat_mc_setsockopt()
597 koptval = (char __user *)kgr; in compat_mc_setsockopt()
606 struct compat_group_source_req __user *gsr32 = (void *)optval; in compat_mc_setsockopt()
607 struct group_source_req __user *kgsr = compat_alloc_user_space( in compat_mc_setsockopt()
621 koptval = (char __user *)kgsr; in compat_mc_setsockopt()
627 struct compat_group_filter __user *gf32 = (void *)optval; in compat_mc_setsockopt()
628 struct group_filter __user *kgf; in compat_mc_setsockopt()
650 koptval = (char __user *)kgf; in compat_mc_setsockopt()
662 char __user *optval, int __user *optlen, in compat_mc_getsockopt() argument
663 int (*getsockopt)(struct sock *, int, int, char __user *, int __user *)) in compat_mc_getsockopt()
665 struct compat_group_filter __user *gf32 = (void *)optval; in compat_mc_getsockopt()
666 struct group_filter __user *kgf; in compat_mc_getsockopt()
667 int __user *koptlen; in compat_mc_getsockopt()
702 err = getsockopt(sock, level, optname, (char __user *)kgf, koptlen); in compat_mc_getsockopt()
751 struct compat_msghdr __user *msg, in __compat_sys_sendmsg()
754 return __sys_sendmsg(fd, (struct user_msghdr __user *)msg, in __compat_sys_sendmsg()
758 COMPAT_SYSCALL_DEFINE3(sendmsg, int, fd, struct compat_msghdr __user *, msg, in COMPAT_SYSCALL_DEFINE3() argument
765 struct compat_mmsghdr __user *mmsg, in __compat_sys_sendmmsg()
768 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in __compat_sys_sendmmsg()
772 COMPAT_SYSCALL_DEFINE4(sendmmsg, int, fd, struct compat_mmsghdr __user *, mmsg, in COMPAT_SYSCALL_DEFINE4() argument
779 struct compat_msghdr __user *msg, in __compat_sys_recvmsg()
782 return __sys_recvmsg(fd, (struct user_msghdr __user *)msg, in __compat_sys_recvmsg()
786 COMPAT_SYSCALL_DEFINE3(recvmsg, int, fd, struct compat_msghdr __user *, msg, in COMPAT_SYSCALL_DEFINE3() argument
792 static inline long __compat_sys_recvfrom(int fd, void __user *buf, in __compat_sys_recvfrom()
794 struct sockaddr __user *addr, in __compat_sys_recvfrom()
795 int __user *addrlen) in __compat_sys_recvfrom()
801 COMPAT_SYSCALL_DEFINE4(recv, int, fd, void __user *, buf, compat_size_t, len, unsigned int, flags) in COMPAT_SYSCALL_DEFINE4() argument
806 COMPAT_SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, buf, compat_size_t, len, in COMPAT_SYSCALL_DEFINE6() argument
807 unsigned int, flags, struct sockaddr __user *, addr, in COMPAT_SYSCALL_DEFINE6() argument
808 int __user *, addrlen) in COMPAT_SYSCALL_DEFINE6() argument
813 static int __compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg, in __compat_sys_recvmmsg()
815 struct compat_timespec __user *timeout) in __compat_sys_recvmmsg()
821 return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in __compat_sys_recvmmsg()
827 datagrams = __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in __compat_sys_recvmmsg()
835 COMPAT_SYSCALL_DEFINE5(recvmmsg, int, fd, struct compat_mmsghdr __user *, mmsg, in COMPAT_SYSCALL_DEFINE5() argument
837 struct compat_timespec __user *, timeout) in COMPAT_SYSCALL_DEFINE5() argument
842 COMPAT_SYSCALL_DEFINE2(socketcall, int, call, u32 __user *, args) in COMPAT_SYSCALL_DEFINE2() argument