diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-10-05 18:59:44 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-01-25 01:13:45 +0100 |
commit | 44c02a2c3dc55835e9f0d8ef73966406cd805001 (patch) | |
tree | e75ed9a07fdb0eae51502e0e62f57bb9cf870501 /include | |
parent | ipconfig: use dev_set_mtu() (diff) | |
download | linux-44c02a2c3dc55835e9f0d8ef73966406cd805001.tar.xz linux-44c02a2c3dc55835e9f0d8ef73966406cd805001.zip |
dev_ioctl(): move copyin/copyout to callers
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index df5565d0369c..24a62d590350 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -3315,7 +3315,8 @@ int netdev_rx_handler_register(struct net_device *dev, void netdev_rx_handler_unregister(struct net_device *dev); bool dev_valid_name(const char *name); -int dev_ioctl(struct net *net, unsigned int cmd, void __user *); +int dev_ioctl(struct net *net, unsigned int cmd, struct ifreq *ifr, + bool *need_copyout); int dev_ifconf(struct net *net, struct ifconf *, int); int dev_ethtool(struct net *net, struct ifreq *); unsigned int dev_get_flags(const struct net_device *); |