Home
last modified time | relevance | path

Searched refs:hardif_obj (Results 1 – 4 of 4) sorted by relevance

/net/batman-adv/
Dsysfs.h51 int batadv_sysfs_add_hardif(struct kobject **hardif_obj,
53 void batadv_sysfs_del_hardif(struct kobject **hardif_obj);
70 static inline int batadv_sysfs_add_hardif(struct kobject **hardif_obj, in batadv_sysfs_add_hardif() argument
76 static inline void batadv_sysfs_del_hardif(struct kobject **hardif_obj) in batadv_sysfs_del_hardif() argument
Dsysfs.c1227 int batadv_sysfs_add_hardif(struct kobject **hardif_obj, struct net_device *dev) in batadv_sysfs_add_hardif() argument
1233 *hardif_obj = kobject_create_and_add(BATADV_SYSFS_IF_BAT_SUBDIR, in batadv_sysfs_add_hardif()
1236 if (!*hardif_obj) { in batadv_sysfs_add_hardif()
1243 err = sysfs_create_file(*hardif_obj, &((*bat_attr)->attr)); in batadv_sysfs_add_hardif()
1256 sysfs_remove_file(*hardif_obj, &((*bat_attr)->attr)); in batadv_sysfs_add_hardif()
1266 void batadv_sysfs_del_hardif(struct kobject **hardif_obj) in batadv_sysfs_del_hardif() argument
1268 kobject_uevent(*hardif_obj, KOBJ_REMOVE); in batadv_sysfs_del_hardif()
1269 kobject_del(*hardif_obj); in batadv_sysfs_del_hardif()
1270 kobject_put(*hardif_obj); in batadv_sysfs_del_hardif()
1271 *hardif_obj = NULL; in batadv_sysfs_del_hardif()
Dhard-interface.c946 ret = batadv_sysfs_add_hardif(&hard_iface->hardif_obj, net_dev); in batadv_hardif_add_interface()
1001 batadv_sysfs_del_hardif(&hard_iface->hardif_obj); in batadv_hardif_remove_interface()
Dtypes.h191 struct kobject *hardif_obj; member