Lines Matching refs:optlen
343 char __user *optval, unsigned int optlen) in do_set_attach_filter() argument
363 int optname, char __user *optval, unsigned int optlen) in do_set_sock_timeout() argument
370 if (optlen < sizeof(*up)) in do_set_sock_timeout()
385 char __user *optval, unsigned int optlen) in compat_sock_setsockopt() argument
389 optval, optlen); in compat_sock_setsockopt()
391 return do_set_sock_timeout(sock, level, optname, optval, optlen); in compat_sock_setsockopt()
393 return sock_setsockopt(sock, level, optname, optval, optlen); in compat_sock_setsockopt()
397 char __user *optval, unsigned int optlen) in compat_sys_setsockopt() argument
411 optname, optval, optlen); in compat_sys_setsockopt()
414 optname, optval, optlen); in compat_sys_setsockopt()
417 optname, optval, optlen); in compat_sys_setsockopt()
424 char __user *optval, int __user *optlen) in do_get_sock_timeout() argument
432 if (get_user(len, optlen)) in do_get_sock_timeout()
443 if (put_user(sizeof(*up), optlen) || in do_get_sock_timeout()
453 char __user *optval, int __user *optlen) in compat_sock_getsockopt() argument
456 return do_get_sock_timeout(sock, level, optname, optval, optlen); in compat_sock_getsockopt()
457 return sock_getsockopt(sock, level, optname, optval, optlen); in compat_sock_getsockopt()
517 char __user *optval, int __user *optlen) in compat_sys_getsockopt() argument
531 optname, optval, optlen); in compat_sys_getsockopt()
534 optname, optval, optlen); in compat_sys_getsockopt()
537 optname, optval, optlen); in compat_sys_getsockopt()
572 char __user *optval, unsigned int optlen, in compat_mc_setsockopt() argument
576 int koptlen = optlen; in compat_mc_setsockopt()
633 koptlen = optlen + sizeof(struct group_filter) - in compat_mc_setsockopt()
659 char __user *optval, int __user *optlen, in compat_mc_getsockopt() argument
669 return getsockopt(sock, level, optname, optval, optlen); in compat_mc_getsockopt()
672 if (!access_ok(VERIFY_READ, optlen, sizeof(*optlen)) || in compat_mc_getsockopt()
673 __get_user(ulen, optlen)) in compat_mc_getsockopt()
687 kgf = compat_alloc_user_space(klen+sizeof(*optlen)); in compat_mc_getsockopt()
709 if (!access_ok(VERIFY_WRITE, optlen, sizeof(*optlen)) || in compat_mc_getsockopt()
710 __put_user(ulen, optlen)) in compat_mc_getsockopt()