summaryrefslogtreecommitdiff
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2003-06-11 11:07:56 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2003-06-11 11:07:56 -0700
commit2022e705e2c177b47c35ac483bdad90cfb28ae33 (patch)
treedcb9a131fa7395a900aad4229dc6ecba5405457d /include/linux/netdevice.h
parentdae0e204362ea5a9f8c938f60adcf2bbaf86be67 (diff)
[NET]: Expose alloc_netdev() for use by drivers.
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index d1f54f5930e6..ecc2225939b9 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -816,6 +816,8 @@ extern void tr_setup(struct net_device *dev);
extern void fc_setup(struct net_device *dev);
extern void fc_freedev(struct net_device *dev);
/* Support for loadable net-drivers */
+extern struct net_device *alloc_netdev(int sizeof_priv, const char *name,
+ void (*setup)(struct net_device *));
extern int register_netdev(struct net_device *dev);
extern void unregister_netdev(struct net_device *dev);
/* Functions used for multicast support */