/linux/include/linux/ |
A D | sockptr.h | 20 } sockptr_t; typedef 22 static inline bool sockptr_is_kernel(sockptr_t sockptr) in sockptr_is_kernel() 27 static inline sockptr_t KERNEL_SOCKPTR(void *p) in KERNEL_SOCKPTR() 29 return (sockptr_t) { .kernel = p, .is_kernel = true }; in KERNEL_SOCKPTR() 32 static inline sockptr_t USER_SOCKPTR(void __user *p) in USER_SOCKPTR() 34 return (sockptr_t) { .user = p }; in USER_SOCKPTR() 37 static inline bool sockptr_is_null(sockptr_t sockptr) in sockptr_is_null() 44 static inline int copy_from_sockptr_offset(void *dst, sockptr_t src, in copy_from_sockptr_offset() 58 static inline int copy_to_sockptr_offset(sockptr_t dst, size_t offset, in copy_to_sockptr_offset() 67 static inline void *memdup_sockptr(sockptr_t src, size_t len) in memdup_sockptr() [all …]
|
A D | bpfptr.h | 9 typedef sockptr_t bpfptr_t; 52 return copy_from_sockptr_offset(dst, (sockptr_t) src, offset, size); in copy_from_bpfptr_offset() 63 return copy_to_sockptr_offset((sockptr_t) dst, offset, src, size); in copy_to_bpfptr_offset() 81 return strncpy_from_sockptr(dst, (sockptr_t) src, count); in strncpy_from_bpfptr()
|
A D | bpfilter.h | 10 int bpfilter_ip_set_sockopt(struct sock *sk, int optname, sockptr_t optval, 20 int (*sockopt)(struct sock *sk, int optname, sockptr_t optval,
|
A D | mroute.h | 19 int ip_mroute_setsockopt(struct sock *, int, sockptr_t, unsigned int); 27 sockptr_t optval, unsigned int optlen) in ip_mroute_setsockopt()
|
A D | mroute6.h | 29 extern int ip6_mroute_setsockopt(struct sock *, int, sockptr_t, unsigned int); 38 sockptr_t optval, unsigned int optlen) in ip6_mroute_setsockopt()
|
A D | netfilter.h | 173 int (*set)(struct sock *sk, int optval, sockptr_t arg, 349 int nf_setsockopt(struct sock *sk, u_int8_t pf, int optval, sockptr_t opt,
|
/linux/net/mptcp/ |
A D | sockopt.c | 57 static int mptcp_get_int_option(struct mptcp_sock *msk, sockptr_t optval, in mptcp_get_int_option() 123 sockptr_t optval = KERNEL_SOCKPTR(&val); in mptcp_sol_socket_intval() 147 sockptr_t optval = KERNEL_SOCKPTR(&val); in mptcp_setsockopt_sol_socket_tstamp() 171 sockptr_t optval, in mptcp_setsockopt_sol_socket_int() 207 sockptr_t optval, in mptcp_setsockopt_sol_socket_timestamping() 249 static int mptcp_setsockopt_sol_socket_linger(struct mptcp_sock *msk, sockptr_t optval, in mptcp_setsockopt_sol_socket_linger() 255 sockptr_t kopt; in mptcp_setsockopt_sol_socket_linger() 291 sockptr_t optval, unsigned int optlen) in mptcp_setsockopt_sol_socket() 385 sockptr_t optval, unsigned int optlen) in mptcp_setsockopt_v6() 601 sockptr_t optval, unsigned int optlen) in mptcp_setsockopt_sol_tcp() [all …]
|
/linux/net/ipv4/bpfilter/ |
A D | sockopt.c | 24 static int bpfilter_mbox_request(struct sock *sk, int optname, sockptr_t optval, in bpfilter_mbox_request() 54 int bpfilter_ip_set_sockopt(struct sock *sk, int optname, sockptr_t optval, in bpfilter_ip_set_sockopt()
|
/linux/net/rds/ |
A D | af_rds.c | 293 static int rds_cancel_sent_to(struct rds_sock *rs, sockptr_t optval, int len) in rds_cancel_sent_to() 330 static int rds_set_bool_option(unsigned char *optvar, sockptr_t optval, in rds_set_bool_option() 343 static int rds_cong_monitor(struct rds_sock *rs, sockptr_t optval, int optlen) in rds_cong_monitor() 360 static int rds_set_transport(struct rds_sock *rs, sockptr_t optval, int optlen) in rds_set_transport() 381 static int rds_enable_recvtstamp(struct sock *sk, sockptr_t optval, in rds_enable_recvtstamp() 405 static int rds_recv_track_latency(struct rds_sock *rs, sockptr_t optval, in rds_recv_track_latency() 433 sockptr_t optval, unsigned int optlen) in rds_setsockopt()
|
A D | rds.h | 927 int rds_get_mr(struct rds_sock *rs, sockptr_t optval, int optlen); 928 int rds_get_mr_for_dest(struct rds_sock *rs, sockptr_t optval, int optlen); 929 int rds_free_mr(struct rds_sock *rs, sockptr_t optval, int optlen);
|
A D | rdma.c | 356 int rds_get_mr(struct rds_sock *rs, sockptr_t optval, int optlen) in rds_get_mr() 369 int rds_get_mr_for_dest(struct rds_sock *rs, sockptr_t optval, int optlen) in rds_get_mr_for_dest() 396 int rds_free_mr(struct rds_sock *rs, sockptr_t optval, int optlen) in rds_free_mr()
|
/linux/net/ipv6/ |
A D | ipv6_sockglue.c | 142 sockptr_t optval, int optlen) in copy_group_source_from_sockptr() 165 sockptr_t optval, int optlen) in do_ipv6_mcast_group_source() 205 static int ipv6_set_mcast_msfilter(struct sock *sk, sockptr_t optval, in ipv6_set_mcast_msfilter() 236 static int compat_ipv6_set_mcast_msfilter(struct sock *sk, sockptr_t optval, in compat_ipv6_set_mcast_msfilter() 281 sockptr_t optval, int optlen) in ipv6_mcast_join_leave() 301 sockptr_t optval, int optlen) in compat_ipv6_mcast_join_leave() 320 static int ipv6_set_opt_hdr(struct sock *sk, int optname, sockptr_t optval, in ipv6_set_opt_hdr() 395 sockptr_t optval, unsigned int optlen) in do_ipv6_setsockopt() 1001 int ipv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, in ipv6_setsockopt()
|
A D | udp_impl.h | 20 int udpv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
|
A D | ip6_flowlabel.c | 374 sockptr_t optval, int optlen, int *err_p) in fl_create() 608 sockptr_t optval, int optlen) in ipv6_flowlabel_get() 722 int ipv6_flowlabel_opt(struct sock *sk, sockptr_t optval, int optlen) in ipv6_flowlabel_opt()
|
/linux/net/ipv4/ |
A D | udp_impl.h | 15 int udp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
|
A D | ip_sockglue.c | 698 sockptr_t optval, int optlen) in copy_group_source_from_sockptr() 721 sockptr_t optval, int optlen) in do_mcast_group_source() 768 static int ip_set_mcast_msfilter(struct sock *sk, sockptr_t optval, int optlen) in ip_set_mcast_msfilter() 800 static int compat_ip_set_mcast_msfilter(struct sock *sk, sockptr_t optval, in compat_ip_set_mcast_msfilter() 845 sockptr_t optval, int optlen) in ip_mcast_join_leave() 867 sockptr_t optval, int optlen) in compat_ip_mcast_join_leave() 892 sockptr_t optval, unsigned int optlen) in do_ip_setsockopt() 1424 int ip_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, in ip_setsockopt()
|
/linux/net/atm/ |
A D | common.h | 24 sockptr_t optval, unsigned int optlen);
|
A D | pvc.c | 66 sockptr_t optval, unsigned int optlen) in pvc_setsockopt()
|
/linux/net/rxrpc/ |
A D | server_key.c | 118 int rxrpc_server_keyring(struct rxrpc_sock *rx, sockptr_t optval, int optlen) in rxrpc_server_keyring()
|
/linux/net/bpfilter/ |
A D | bpfilter_kern.c | 63 sockptr_t optval, unsigned int optlen, in bpfilter_process_sockopt()
|
/linux/net/netfilter/ |
A D | nf_sockopt.c | 92 int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, sockptr_t opt, in nf_setsockopt()
|
/linux/net/dccp/ |
A D | proto.c | 414 sockptr_t optval, unsigned int optlen) in dccp_setsockopt_service() 484 sockptr_t optval, unsigned int optlen) in dccp_setsockopt_ccid() 509 sockptr_t optval, unsigned int optlen) in do_dccp_setsockopt() 574 int dccp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, in dccp_setsockopt()
|
/linux/include/crypto/ |
A D | if_alg.h | 49 int (*setentropy)(void *private, sockptr_t entropy, unsigned int len);
|
/linux/net/tls/ |
A D | tls_main.c | 546 static int do_tls_setsockopt_conf(struct sock *sk, sockptr_t optval, in do_tls_setsockopt_conf() 683 static int do_tls_setsockopt(struct sock *sk, int optname, sockptr_t optval, in do_tls_setsockopt() 704 sockptr_t optval, unsigned int optlen) in tls_setsockopt()
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
A D | chtls_main.c | 491 sockptr_t optval, unsigned int optlen) in do_chtls_setsockopt() 570 sockptr_t optval, unsigned int optlen) in chtls_setsockopt()
|