Re: kobject question

2013-05-30 Thread Greg Kroah-Hartman (gre...@linuxfoundation.org)
On Tue, May 28, 2013 at 09:13:15PM -0500, H Hartley Sweeten wrote: > > But let's take a step back, what are you trying to do by creating a new > > sysfs directory? You should never create a subdir in the device tree in > > sysfs, that is not a 'struct device'. That is because udev / userspace > >

RE: kobject question

2013-05-28 Thread H Hartley Sweeten
On Tuesday, May 28, 2013 6:56 PM, Greg Kroah-Hartman wrote: > On Tue, May 28, 2013 at 08:46:58PM -0500, H Hartley Sweeten wrote: >> Greg, >> >> I'm trying to create a simple directory in the sysfs hierarchy following >> Documentation/kobject.txt and samples/kobject-example.c. > > Hint, don't :) T

Re: kobject question

2013-05-28 Thread Greg Kroah-Hartman (gre...@linuxfoundation.org)
On Tue, May 28, 2013 at 08:46:58PM -0500, H Hartley Sweeten wrote: > Greg, > > I'm trying to create a simple directory in the sysfs hierarchy following > Documentation/kobject.txt and samples/kobject-example.c. Hint, don't :) > I have been able to create the subdirectory and attributes but now >

kobject question

2013-05-28 Thread H Hartley Sweeten
Greg, I'm trying to create a simple directory in the sysfs hierarchy following Documentation/kobject.txt and samples/kobject-example.c. I have been able to create the subdirectory and attributes but now I'm stuck. In the sample, the attribute files all use static data (foo, baz, bar). Is there a