Re: SYSFS "errors"

From: Greg KH
Date: Mon Feb 18 2013 - 12:13:44 EST


On Mon, Feb 18, 2013 at 05:52:15PM +0200, Felipe Balbi wrote:
> Hi,
>
> On Mon, Feb 18, 2013 at 07:50:12AM -0800, Greg KH wrote:
> > > If it helps in any way, I have printed below only the filenames
> > > (without path) so I could pipe it through uniq:
> > >
> > > act_mask
> > > audit
> > > autosuspend_delay_ms
> > > bind
> >
> > This one the driver core creates, I'll fix that up.
> >
> > The rest need paths to determine who to blame :)
>
> wanna see the full list ? It's 1602 lines :-p

You must have more devices in your system than I do:
$ ruby ./sysfs_test.ruby | wc -l
626

What kernel version did you run this on? I don't see any "bind" file in
the list on 3.8.0-rc7+:
$ ls -l /sys/bus/platform/drivers/pcspkr/bind
--w------- 1 root root 4096 Feb 18 09:09 /sys/bus/platform/drivers/pcspkr/bind
$ ls -l /sys/bus/serio/drivers/atkbd/unbind
--w------- 1 root root 4096 Feb 18 09:09 /sys/bus/serio/drivers/atkbd/unbind

So the full list might be necessary here, thanks.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/