aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h16
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
2877extern int netdev_class_create_file(struct class_attribute *class_attr); 2877extern int netdev_class_create_file_ns(struct class_attribute *class_attr,
2878extern void netdev_class_remove_file(struct class_attribute *class_attr); 2878 const void *ns);
2879extern void netdev_class_remove_file_ns(struct class_attribute *class_attr,
2880 const void *ns);
2881
2882static inline int netdev_class_create_file(struct class_attribute *class_attr)
2883{
2884 return netdev_class_create_file_ns(class_attr, NULL);
2885}
2886
2887static inline void netdev_class_remove_file(struct class_attribute *class_attr)
2888{
2889 netdev_class_remove_file_ns(class_attr, NULL);
2890}
2879 2891
2880extern struct kobj_ns_type_operations net_ns_type_operations; 2892extern struct kobj_ns_type_operations net_ns_type_operations;
2881 2893