diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 25f5d2d11e7c..adf4070586d6 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -2874,8 +2874,20 @@ extern int __init dev_proc_init(void); | |||
2874 | #define dev_proc_init() 0 | 2874 | #define dev_proc_init() 0 |
2875 | #endif | 2875 | #endif |
2876 | 2876 | ||
2877 | extern int netdev_class_create_file(struct class_attribute *class_attr); | 2877 | extern int netdev_class_create_file_ns(struct class_attribute *class_attr, |
2878 | extern void netdev_class_remove_file(struct class_attribute *class_attr); | 2878 | const void *ns); |
2879 | extern void netdev_class_remove_file_ns(struct class_attribute *class_attr, | ||
2880 | const void *ns); | ||
2881 | |||
2882 | static inline int netdev_class_create_file(struct class_attribute *class_attr) | ||
2883 | { | ||
2884 | return netdev_class_create_file_ns(class_attr, NULL); | ||
2885 | } | ||
2886 | |||
2887 | static inline void netdev_class_remove_file(struct class_attribute *class_attr) | ||
2888 | { | ||
2889 | netdev_class_remove_file_ns(class_attr, NULL); | ||
2890 | } | ||
2879 | 2891 | ||
2880 | extern struct kobj_ns_type_operations net_ns_type_operations; | 2892 | extern struct kobj_ns_type_operations net_ns_type_operations; |
2881 | 2893 | ||