dev_valid_name() is a useful function. Make it public.
Signed-off-by: Mitch Williams <[EMAIL PROTECTED]>
diff -urpN -X dontdiff linux-2.6.14-clean/include/linux/netdevice.h
linux-2.6.14/include/linux/netdevice.h
--- linux-2.6.14-clean/include/linux/netdevice.h 2005-10-27
17:02:08.000000000 -0700
+++ linux-2.6.14/include/linux/netdevice.h 2005-11-08 10:14:00.000000000
-0800
@@ -683,6 +683,7 @@ extern int netif_rx(struct sk_buff *skb
extern int netif_rx_ni(struct sk_buff *skb);
#define HAVE_NETIF_RECEIVE_SKB 1
extern int netif_receive_skb(struct sk_buff *skb);
+extern int dev_valid_name(const char *name);
extern int dev_ioctl(unsigned int cmd, void __user *);
extern int dev_ethtool(struct ifreq *);
extern unsigned dev_get_flags(const struct net_device *);
diff -urpN -X dontdiff linux-2.6.14-clean/net/core/dev.c
linux-2.6.14/net/core/dev.c
--- linux-2.6.14-clean/net/core/dev.c 2005-10-27 17:02:08.000000000 -0700
+++ linux-2.6.14/net/core/dev.c 2005-11-08 10:14:00.000000000 -0800
@@ -626,7 +626,7 @@ struct net_device * dev_get_by_flags(uns
* Network device names need to be valid file names to
* to allow sysfs to work
*/
-static int dev_valid_name(const char *name)
+int dev_valid_name(const char *name)
{
return !(*name == '\0'
|| !strcmp(name, ".")
@@ -3243,6 +3243,7 @@ EXPORT_SYMBOL(__dev_get_by_index);
EXPORT_SYMBOL(__dev_get_by_name);
EXPORT_SYMBOL(__dev_remove_pack);
EXPORT_SYMBOL(__skb_linearize);
+EXPORT_SYMBOL(dev_valid_name);
EXPORT_SYMBOL(dev_add_pack);
EXPORT_SYMBOL(dev_alloc_name);
EXPORT_SYMBOL(dev_close);
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html