Skip to contentSkip to conversation

(2/4) net-sysfs - use attribute group instead of kobject for statistics

PATCH New Stephen Hemminger 1 participant 1 message Aug 15, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 (2/4) net-sysfs - use attribute group instead of kobject for statistics

Net statistics were in a kobject only because there was no better way to create a directory. Latest 2.6.0-test3 bk tree, has merged in Pat's change to provide "attribute groups".

This patch converts netdevice's from a statistic's kobject to attribute group. This is cleaner and fixes some shutdown unload issues as well.

Ps. it gets rid of of the "object has no release" warning as well.

include/linux/netdevice.h +0 -3
diff -Nru a/include/linux/netdevice.h b/include/linux/netdevice.h
@@ -463,9 +463,6 @@
 
 	/* class/net/name entry */
 	struct class_device	class_dev;
-
-	/* statistics sub-directory */
-	struct kobject		stats_kobj;
 };
 
 #define SET_MODULE_OWNER(dev) do { } while (0)
net/core/net-sysfs.c +82 -104

221 lines not on this page · raw message