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 15fa01c9a3b..8b3de7cc2ff 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2925,8 +2925,20 @@ int __init dev_proc_init(void); #define dev_proc_init() 0 #endif -int netdev_class_create_file(struct class_attribute *class_attr); -void netdev_class_remove_file(struct class_attribute *class_attr); +int netdev_class_create_file_ns(struct class_attribute *class_attr, + const void *ns); +void netdev_class_remove_file_ns(struct class_attribute *class_attr, + const void *ns); + +static inline int netdev_class_create_file(struct class_attribute *class_attr) +{ + return netdev_class_create_file_ns(class_attr, NULL); +} + +static inline void netdev_class_remove_file(struct class_attribute *class_attr) +{ + netdev_class_remove_file_ns(class_attr, NULL); +} extern struct kobj_ns_type_operations net_ns_type_operations; |