diff options
author | Mitch Williams <mitch.a.williams@intel.com> | 2005-11-09 13:34:45 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2005-11-13 14:48:18 -0500 |
commit | c2373ee98982a1c842dfb213c398f388d4227e63 (patch) | |
tree | 78b02f37f11503c0b2c85da1fb1811f430e8c163 | |
parent | 1e2e5659656b8b9bd9fa4714355d91282cb74178 (diff) |
[PATCH] net: make dev_valid_name public
dev_valid_name() is a useful function. Make it public.
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Acked-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | include/linux/netdevice.h | 1 | ||||
-rw-r--r-- | net/core/dev.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 936f8b76114e..4fceff0e59ec 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -684,6 +684,7 @@ extern int netif_rx(struct sk_buff *skb); | |||
684 | extern int netif_rx_ni(struct sk_buff *skb); | 684 | extern int netif_rx_ni(struct sk_buff *skb); |
685 | #define HAVE_NETIF_RECEIVE_SKB 1 | 685 | #define HAVE_NETIF_RECEIVE_SKB 1 |
686 | extern int netif_receive_skb(struct sk_buff *skb); | 686 | extern int netif_receive_skb(struct sk_buff *skb); |
687 | extern int dev_valid_name(const char *name); | ||
687 | extern int dev_ioctl(unsigned int cmd, void __user *); | 688 | extern int dev_ioctl(unsigned int cmd, void __user *); |
688 | extern int dev_ethtool(struct ifreq *); | 689 | extern int dev_ethtool(struct ifreq *); |
689 | extern unsigned dev_get_flags(const struct net_device *); | 690 | extern unsigned dev_get_flags(const struct net_device *); |
diff --git a/net/core/dev.c b/net/core/dev.c index 0b48e294aafe..94e642ee6e2b 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -626,7 +626,7 @@ struct net_device * dev_get_by_flags(unsigned short if_flags, unsigned short mas | |||
626 | * Network device names need to be valid file names to | 626 | * Network device names need to be valid file names to |
627 | * to allow sysfs to work | 627 | * to allow sysfs to work |
628 | */ | 628 | */ |
629 | static int dev_valid_name(const char *name) | 629 | int dev_valid_name(const char *name) |
630 | { | 630 | { |
631 | return !(*name == '\0' | 631 | return !(*name == '\0' |
632 | || !strcmp(name, ".") | 632 | || !strcmp(name, ".") |
@@ -3269,6 +3269,7 @@ EXPORT_SYMBOL(__dev_get_by_index); | |||
3269 | EXPORT_SYMBOL(__dev_get_by_name); | 3269 | EXPORT_SYMBOL(__dev_get_by_name); |
3270 | EXPORT_SYMBOL(__dev_remove_pack); | 3270 | EXPORT_SYMBOL(__dev_remove_pack); |
3271 | EXPORT_SYMBOL(__skb_linearize); | 3271 | EXPORT_SYMBOL(__skb_linearize); |
3272 | EXPORT_SYMBOL(dev_valid_name); | ||
3272 | EXPORT_SYMBOL(dev_add_pack); | 3273 | EXPORT_SYMBOL(dev_add_pack); |
3273 | EXPORT_SYMBOL(dev_alloc_name); | 3274 | EXPORT_SYMBOL(dev_alloc_name); |
3274 | EXPORT_SYMBOL(dev_close); | 3275 | EXPORT_SYMBOL(dev_close); |