]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NET]: Add a dev_ioctl() fallback to sock_ioctl()
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Jan 2006 22:18:33 +0000 (14:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jan 2006 22:18:33 +0000 (14:18 -0800)
commitb5e5fa5e093e42cab4ee3d6dcbc4f450ad29a723
tree7a87804b0953f22de43054ccc7ae67ebc5b66b20
parent5ff7630e4aa6c3969094dc30ff1cdaa6f52b0ed0
[NET]: Add a dev_ioctl() fallback to sock_ioctl()

Currently all network protocols need to call dev_ioctl as the default
fallback in their ioctl implementations.  This patch adds a fallback
to dev_ioctl to sock_ioctl if the protocol returned -ENOIOCTLCMD.
This way all the procotol ioctl handlers can be simplified and we don't
need to export dev_ioctl.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 files changed:
net/appletalk/ddp.c
net/ax25/af_ax25.c
net/core/dev.c
net/decnet/af_decnet.c
net/econet/af_econet.c
net/ipv4/af_inet.c
net/ipv6/af_inet6.c
net/ipx/af_ipx.c
net/irda/af_irda.c
net/llc/af_llc.c
net/netrom/af_netrom.c
net/packet/af_packet.c
net/rose/af_rose.c
net/socket.c
net/unix/af_unix.c
net/wanrouter/af_wanpipe.c
net/x25/af_x25.c