diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-05-06 17:56:03 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-05-06 17:56:03 -0700 |
commit | fe9925b551a95fae6ec61470c79f8b701a2fe928 (patch) | |
tree | 3df1817dee3c804d155e3a1c52b6ff696bc60293 /include/linux/netdevice.h | |
parent | 1498221d51a43d5fa1a580618591497d90f957d9 (diff) | |
download | linux-fe9925b551a95fae6ec61470c79f8b701a2fe928.tar.gz linux-fe9925b551a95fae6ec61470c79f8b701a2fe928.tar.bz2 linux-fe9925b551a95fae6ec61470c79f8b701a2fe928.zip |
[NET]: Create netdev attribute_groups with class_device_add
Atomically create attributes when class device is added. This avoids
the race between registering class_device (which generates hotplug
event), and the creation of attribute groups.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 01db7b88a2b1..309f9190a922 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -506,6 +506,8 @@ struct net_device /* class/net/name entry */ struct class_device class_dev; + /* space for optional statistics and wireless sysfs groups */ + struct attribute_group *sysfs_groups[3]; }; #define NETDEV_ALIGN 32 |