Home
last modified time | relevance | path

Searched refs:__user (Results 1 – 25 of 174) sorted by relevance

1234567

/net/
Dcompat.c37 struct compat_msghdr __user *umsg, in get_compat_msghdr()
38 struct sockaddr __user **save_addr, in get_compat_msghdr()
93 ((void __user *)((char __user *)(cmsg) + sizeof(struct compat_cmsghdr)))
101 (struct compat_cmsghdr __user *)((msg)->msg_control) : \
102 (struct compat_cmsghdr __user *)NULL)
110 static inline struct compat_cmsghdr __user *cmsg_compat_nxthdr(struct msghdr *msg, in cmsg_compat_nxthdr()
111 struct compat_cmsghdr __user *cmsg, int cmsg_len) in cmsg_compat_nxthdr()
113 char __user *ptr = (char __user *)cmsg + CMSG_COMPAT_ALIGN(cmsg_len); in cmsg_compat_nxthdr()
114 if ((unsigned long)(ptr + 1 - (char __user *)msg->msg_control) > in cmsg_compat_nxthdr()
117 return (struct compat_cmsghdr __user *)ptr; in cmsg_compat_nxthdr()
[all …]
Dsocket.c178 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel()
207 void __user *uaddr, int __user *ulen) in move_addr_to_user()
1001 static int (*br_ioctl_hook) (struct net *, unsigned int cmd, void __user *arg);
1003 void brioctl_set(int (*hook) (struct net *, unsigned int, void __user *)) in brioctl_set() argument
1012 static int (*vlan_ioctl_hook) (struct net *, void __user *arg);
1014 void vlan_ioctl_set(int (*hook) (struct net *, void __user *)) in vlan_ioctl_set() argument
1023 static int (*dlci_ioctl_hook) (unsigned int, void __user *);
1025 void dlci_ioctl_set(int (*hook) (unsigned int, void __user *)) in dlci_ioctl_set() argument
1037 void __user *argp = (void __user *)arg; in sock_do_ioctl()
1092 void __user *argp = (void __user *)arg; in sock_ioctl()
[all …]
/net/ipv6/
Dudp_impl.h19 char __user *optval, int __user *optlen);
21 char __user *optval, unsigned int optlen);
24 char __user *optval, unsigned int optlen);
26 char __user *optval, int __user *optlen);
Draw.c975 char __user *optval, int optlen) in rawv6_seticmpfilter()
992 char __user *optval, int __user *optlen) in rawv6_geticmpfilter()
1018 char __user *optval, unsigned int optlen) in do_rawv6_setsockopt()
1023 if (get_user(val, (int __user *)optval)) in do_rawv6_setsockopt()
1065 char __user *optval, unsigned int optlen) in rawv6_setsockopt()
1089 char __user *optval, unsigned int optlen) in compat_rawv6_setsockopt()
1112 char __user *optval, int __user *optlen) in do_rawv6_getsockopt()
1150 char __user *optval, int __user *optlen) in rawv6_getsockopt()
1174 char __user *optval, int __user *optlen) in compat_rawv6_getsockopt()
1202 return put_user(amount, (int __user *)arg); in rawv6_ioctl()
[all …]
/net/ipv4/
Dudp_impl.h16 char __user *optval, unsigned int optlen);
18 char __user *optval, int __user *optlen);
22 char __user *optval, unsigned int optlen);
24 char __user *optval, int __user *optlen);
Draw.c812 static int raw_seticmpfilter(struct sock *sk, char __user *optval, int optlen) in raw_seticmpfilter()
821 static int raw_geticmpfilter(struct sock *sk, char __user *optval, int __user *optlen) in raw_geticmpfilter()
841 char __user *optval, unsigned int optlen) in do_raw_setsockopt()
853 char __user *optval, unsigned int optlen) in raw_setsockopt()
862 char __user *optval, unsigned int optlen) in compat_raw_setsockopt()
871 char __user *optval, int __user *optlen) in do_raw_getsockopt()
883 char __user *optval, int __user *optlen) in raw_getsockopt()
892 char __user *optval, int __user *optlen) in compat_raw_getsockopt()
906 return put_user(amount, (int __user *)arg); in raw_ioctl()
917 return put_user(amount, (int __user *)arg); in raw_ioctl()
[all …]
/net/dccp/
Dccid.h80 u32 __user *optval,
81 int __user *optlen);
84 u32 __user *optval,
85 int __user *optlen);
109 char __user *, int __user *);
243 u32 __user *optval, int __user *optlen) in ccid_hc_rx_getsockopt()
254 u32 __user *optval, int __user *optlen) in ccid_hc_tx_getsockopt()
Dproto.c390 rc = put_user(amount, (int __user *)arg); in dccp_ioctl()
405 char __user *optval, unsigned int optlen) in dccp_setsockopt_service()
476 char __user *optval, unsigned int optlen) in dccp_setsockopt_ccid()
501 char __user *optval, unsigned int optlen) in do_dccp_setsockopt()
523 if (get_user(val, (int __user *)optval)) in do_dccp_setsockopt()
567 char __user *optval, unsigned int optlen) in dccp_setsockopt()
580 char __user *optval, unsigned int optlen) in compat_dccp_setsockopt()
592 __be32 __user *optval, in dccp_getsockopt_service()
593 int __user *optlen) in dccp_getsockopt_service()
620 char __user *optval, int __user *optlen) in do_dccp_getsockopt()
[all …]
/net/sctp/
Dsocket.c972 struct sockaddr __user *addrs, in sctp_setsockopt_bindx()
1296 struct sockaddr __user *addrs, in __sctp_setsockopt_connectx()
1340 struct sockaddr __user *addrs, in sctp_setsockopt_connectx_old()
1353 struct sockaddr __user *addrs, in sctp_setsockopt_connectx()
1384 char __user *optval, in sctp_getsockopt_connectx3()
1385 int __user *optlen) in sctp_getsockopt_connectx3()
1412 err = __sctp_setsockopt_connectx(sk, (struct sockaddr __user *) in sctp_getsockopt_connectx3()
2197 char __user *optval, in sctp_setsockopt_disable_fragments()
2205 if (get_user(val, (int __user *)optval)) in sctp_setsockopt_disable_fragments()
2213 static int sctp_setsockopt_events(struct sock *sk, char __user *optval, in sctp_setsockopt_events()
[all …]
Dsysctl.c44 void __user *buffer, size_t *lenp,
47 void __user *buffer, size_t *lenp,
50 void __user *buffer, size_t *lenp,
53 void __user *buffer, size_t *lenp,
56 void __user *buffer, size_t *lenp,
326 void __user *buffer, size_t *lenp, in proc_sctp_do_hmac_alg()
372 void __user *buffer, size_t *lenp, in proc_sctp_do_rto_min()
401 void __user *buffer, size_t *lenp, in proc_sctp_do_rto_max()
430 void __user *buffer, size_t *lenp, in proc_sctp_do_alpha_beta()
441 void __user *buffer, size_t *lenp, in proc_sctp_do_auth()
/net/atm/
Dioctl.c58 void __user *argp = (void __user *)arg; in do_vcc_ioctl()
69 (int __user *)argp) ? -EFAULT : 0; in do_vcc_ioctl()
81 (int __user *)argp) ? -EFAULT : 0; in do_vcc_ioctl()
123 error = get_user(backend, (atm_backend_t __user *)argp); in do_vcc_ioctl()
233 struct atm_iobuf __user *iobuf; in do_atm_iobuf()
234 struct compat_atm_iobuf __user *iobuf32; in do_atm_iobuf()
236 void __user *datap; in do_atm_iobuf()
264 struct atmif_sioc __user *sioc; in do_atmif_sioc()
265 struct compat_atmif_sioc __user *sioc32; in do_atmif_sioc()
267 void __user *datap; in do_atmif_sioc()
Dresources.c177 static int fetch_stats(struct atm_dev *dev, struct atm_dev_stats __user *arg, in fetch_stats()
196 int atm_dev_ioctl(unsigned int cmd, void __user *arg, int compat) in atm_dev_ioctl()
198 void __user *buf; in atm_dev_ioctl()
203 int __user *sioc_len; in atm_dev_ioctl()
204 int __user *iobuf_len; in atm_dev_ioctl()
210 struct compat_atm_iobuf __user *ciobuf = arg; in atm_dev_ioctl()
218 struct atm_iobuf __user *iobuf = arg; in atm_dev_ioctl()
254 struct compat_atmif_sioc __user *csioc = arg; in atm_dev_ioctl()
268 struct atmif_sioc __user *sioc = arg; in atm_dev_ioctl()
Dpppoatm.c373 return put_user(chan_to_pvcc(chan)->flags, (int __user *) arg) in pppoatm_devppp_ioctl()
376 return get_user(chan_to_pvcc(chan)->flags, (int __user *) arg) in pppoatm_devppp_ioctl()
387 static int pppoatm_assign_vcc(struct atm_vcc *atmvcc, void __user *arg) in pppoatm_assign_vcc()
446 void __user *argp = (void __user *)arg; in pppoatm_ioctl()
453 if (get_user(b, (atm_backend_t __user *) argp)) in pppoatm_ioctl()
465 chan), (int __user *) argp) ? -EFAULT : 0; in pppoatm_ioctl()
468 chan), (int __user *) argp) ? -EFAULT : 0; in pppoatm_ioctl()
Dcommon.h24 char __user *optval, unsigned int optlen);
26 char __user *optval, int __user *optlen);
/net/core/
Dethtool.c139 static int ethtool_get_features(struct net_device *dev, void __user *useraddr) in ethtool_get_features()
146 u32 __user *sizeaddr; in ethtool_get_features()
177 static int ethtool_set_features(struct net_device *dev, void __user *useraddr) in ethtool_set_features()
295 char __user *useraddr, u32 ethcmd) in ethtool_get_one_feature()
309 void __user *useraddr, u32 ethcmd) in ethtool_set_one_feature()
561 const void __user *from) in load_link_ksettings_from_user()
587 store_link_ksettings_for_user(void __user *to, in store_link_ksettings_for_user()
611 void __user *useraddr) in ethtool_get_link_ksettings()
665 void __user *useraddr) in ethtool_set_link_ksettings()
708 static int ethtool_get_settings(struct net_device *dev, void __user *useraddr) in ethtool_get_settings()
[all …]
Dsysctl_net_core.c48 void __user *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl()
118 void __user *buffer, size_t *lenp, in flow_limit_cpu_sysctl()
197 void __user *buffer, size_t *lenp, in flow_limit_table_len_sysctl()
220 void __user *buffer, size_t *lenp, loff_t *ppos) in set_default_qdisc()
239 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_dev_weight()
254 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_rss_key()
267 void __user *buffer, size_t *lenp, in proc_dointvec_minmax_bpf_enable()
294 void __user *buffer, size_t *lenp, in proc_dointvec_minmax_bpf_restricted()
306 void __user *buffer, size_t *lenp, in proc_dolongvec_minmax_bpf_restricted()
/net/mac80211/
Ddebugfs.c20 int mac80211_format_buffer(char __user *userbuf, size_t count, in mac80211_format_buffer()
35 static ssize_t name## _read(struct file *file, char __user *userbuf, \
74 char __user *user_buf, in aqm_read()
115 const char __user *user_buf, in aqm_write()
152 char __user *user_buf, in force_tx_status_read()
167 const char __user *user_buf, in force_tx_status_write()
204 static ssize_t reset_write(struct file *file, const char __user *user_buf, in reset_write()
278 static ssize_t hwflags_read(struct file *file, char __user *user_buf, in hwflags_read()
307 static ssize_t misc_read(struct file *file, char __user *user_buf, in misc_read()
339 static ssize_t queues_read(struct file *file, char __user *user_buf, in queues_read()
[all …]
Ddebugfs_key.c18 char __user *userbuf, \
70 char __user *userbuf, in key_algorithm_read()
83 static ssize_t key_tx_spec_write(struct file *file, const char __user *userbuf, in key_tx_spec_write()
118 static ssize_t key_tx_spec_read(struct file *file, char __user *userbuf, in key_tx_spec_read()
157 static ssize_t key_rx_spec_read(struct file *file, char __user *userbuf, in key_rx_spec_read()
225 static ssize_t key_replays_read(struct file *file, char __user *userbuf, in key_replays_read()
258 static ssize_t key_icverrors_read(struct file *file, char __user *userbuf, in key_icverrors_read()
283 static ssize_t key_mic_failures_read(struct file *file, char __user *userbuf, in key_mic_failures_read()
299 static ssize_t key_key_read(struct file *file, char __user *userbuf, in key_key_read()
/net/netfilter/
Dnf_sockopt.c94 char __user *opt, int *len, int get) in nf_sockopt()
112 int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, in nf_setsockopt()
119 int nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, in nf_getsockopt()
128 char __user *opt, int *len, int get) in compat_nf_sockopt()
154 int val, char __user *opt, unsigned int len) in compat_nf_setsockopt()
161 int val, char __user *opt, int *len) in compat_nf_getsockopt()
/net/rds/
Daf_rds.c262 if (get_user(utos, (rds_tos_t __user *)arg)) in rds_ioctl()
283 if (put_user(tos, (rds_tos_t __user *)arg)) in rds_ioctl()
293 static int rds_cancel_sent_to(struct rds_sock *rs, char __user *optval, in rds_cancel_sent_to()
330 static int rds_set_bool_option(unsigned char *optvar, char __user *optval, in rds_set_bool_option()
337 if (get_user(value, (int __user *) optval)) in rds_set_bool_option()
343 static int rds_cong_monitor(struct rds_sock *rs, char __user *optval, in rds_cong_monitor()
361 static int rds_set_transport(struct rds_sock *rs, char __user *optval, in rds_set_transport()
372 if (copy_from_user(&t_type, (int __user *)optval, sizeof(t_type))) in rds_set_transport()
383 static int rds_enable_recvtstamp(struct sock *sk, char __user *optval, in rds_enable_recvtstamp()
391 if (get_user(val, (int __user *)optval)) in rds_enable_recvtstamp()
[all …]
/net/bridge/
Dbr_ioctl.c55 static int get_fdb_entries(struct net_bridge *br, void __user *userbuf, in get_fdb_entries()
151 if (copy_to_user((void __user *)args[1], &b, sizeof(b))) in old_dev_ioctl()
174 if (copy_to_user((void __user *)args[1], indices, num*sizeof(int))) in old_dev_ioctl()
235 if (copy_to_user((void __user *)args[1], &p, sizeof(p))) in old_dev_ioctl()
286 return get_fdb_entries(br, (void __user *)args[1], in old_dev_ioctl()
300 static int old_deviceless(struct net *net, void __user *uarg) in old_deviceless()
324 ret = copy_to_user((void __user *)args[1], indices, args[2]*sizeof(int)) in old_deviceless()
339 if (copy_from_user(buf, (void __user *)args[1], IFNAMSIZ)) in old_deviceless()
354 int br_ioctl_deviceless_stub(struct net *net, unsigned int cmd, void __user *uarg) in br_ioctl_deviceless_stub()
/net/ipv4/bpfilter/
Dsockopt.c26 char __user *optval, in bpfilter_mbox_request()
52 int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char __user *optval, in bpfilter_ip_set_sockopt()
58 int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval, in bpfilter_ip_get_sockopt()
59 int __user *optlen) in bpfilter_ip_get_sockopt()
/net/bpf/
Dtest_run.c77 union bpf_attr __user *uattr, const void *data, in bpf_test_finish()
80 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish()
111 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in bpf_test_init()
130 void __user *data_in = u64_to_user_ptr(kattr->test.ctx_in); in bpf_ctx_init()
131 void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); in bpf_ctx_init()
160 union bpf_attr __user *uattr, const void *data, in bpf_ctx_finish()
163 void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); in bpf_ctx_finish()
242 union bpf_attr __user *uattr) in bpf_prog_test_run_skb()
343 union bpf_attr __user *uattr) in bpf_prog_test_run_xdp()
398 union bpf_attr __user *uattr) in bpf_prog_test_run_flow_dissector()
/net/sunrpc/
Dsysctl.c63 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_xprt()
78 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dodebug()
81 char __user *p; in proc_dodebug()
127 if (put_user('\n', (char __user *)buffer + len)) in proc_dodebug()
/net/bridge/netfilter/
Debtables.c56 static int ebt_standard_compat_to_user(void __user *dst, const void *src) in ebt_standard_compat_to_user()
451 if ((char __user *)repl->hook_entry[i] == in ebt_verify_pointers()
1072 static int do_replace(struct net *net, const void __user *user, in do_replace()
1249 struct ebt_counter __user *counters, in do_update_counters()
1251 const void __user *user, unsigned int len) in do_update_counters()
1294 static int update_counters(struct net *net, const void __user *user, in update_counters()
1309 static inline int ebt_obj_to_user(char __user *um, const char *_name, in ebt_obj_to_user()
1320 put_user(revision, (u8 __user *)(um + EBT_EXTENSION_MAXNAMELEN)) || in ebt_obj_to_user()
1321 put_user(datasize, (int __user *)(um + EBT_EXTENSION_MAXNAMELEN + 1)) || in ebt_obj_to_user()
1330 const char *base, char __user *ubase) in ebt_match_to_user()
[all …]

1234567