Re: [RFC PATCH 1/5] driver core: Introduce device_create_groups

2013-07-06 Thread Guenter Roeck
On Sat, Jul 06, 2013 at 10:47:58AM -0700, Greg Kroah-Hartman wrote: > On Sat, Jul 06, 2013 at 10:24:51AM -0700, Guenter Roeck wrote: > > device_create_groups lets callers create devices as well as associated > > sysfs attributes with a single call. This avoids race conditions seen > > if sysfs attr

Re: [RFC PATCH 1/5] driver core: Introduce device_create_groups

2013-07-06 Thread Greg Kroah-Hartman
On Sat, Jul 06, 2013 at 10:24:51AM -0700, Guenter Roeck wrote: > device_create_groups lets callers create devices as well as associated > sysfs attributes with a single call. This avoids race conditions seen > if sysfs attributes on new devices are created later. > > Signed-off-by: Guenter Roeck

[RFC PATCH 1/5] driver core: Introduce device_create_groups

2013-07-06 Thread Guenter Roeck
device_create_groups lets callers create devices as well as associated sysfs attributes with a single call. This avoids race conditions seen if sysfs attributes on new devices are created later. Signed-off-by: Guenter Roeck --- drivers/base/core.c| 60 ++