Re: [RFC] Staging:IIO: New ABI
From: Kay Sievers
Date: Wed Jan 20 2010 - 11:40:32 EST
On Wed, Jan 20, 2010 at 16:37, Greg KH <greg@xxxxxxxxx> wrote:
> On Wed, Jan 20, 2010 at 03:13:40PM +0000, Jonathan Cameron wrote:
>> What: Â Â Â Â/sys/class/iio/ring_buffer[m]
>> Â Â Â Â Â Â Â Link to /sys/class/iio/device[n]/ring_buffer[m]. Ring buffer
>> Â Â Â Â Â Â Â numbering may not match that of device as some devices do not
>> Â Â Â Â Â Â Â have ring buffers.
> Why is this link needed? ÂWhy can't you just look in the device
> directory for a ring buffer? ÂAnd wouldn't the ring buffer be 1..n for
> every device? ÂThey shouldn't be "unique" for all iio devices, that
> would be wierd.
I think with the hidden class kobject we successfully prevent any
custom links from being created there. :) The class sysfs layout does
not allow custom links added to its single directory, it confuses
Jonathan, if you need anything like this, please consider using a
"bus_type", which has the proper userspace interface. The "class"
interface can not be extended to make such things possible.
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/