]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Create netdev attribute_groups with class_device_add
authorStephen Hemminger <shemminger@osdl.org>
Sun, 7 May 2006 00:56:03 +0000 (17:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 May 2006 00:56:03 +0000 (17:56 -0700)
commitc3109cd547678b5fb7eadfd110ae2ae37eeedb18
tree3df1817dee3c804d155e3a1c52b6ff696bc60293
parent2dd798d2b0917af49e6652d655000b0c88e6adee
[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>
include/linux/netdevice.h
net/core/dev.c
net/core/net-sysfs.c