[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ac3eb2511001200840v185617ecm60b5282cb810a4fb@mail.gmail.com>
Date: Wed, 20 Jan 2010 17:40:06 +0100
From: Kay Sievers <kay.sievers@...y.org>
To: Greg KH <greg@...ah.com>
Cc: Jonathan Cameron <jic23@....ac.uk>,
LKML <linux-kernel@...r.kernel.org>,
Manuel Stahl <manuel.stahl@....fraunhofer.de>,
"Hennerich, Michael" <Michael.Hennerich@...log.com>,
"Frysinger, Michael" <Michael.Frysinger@...log.com>,
"Getz, Robin" <Robin.Getz@...log.com>,
Jean Delvare <khali@...ux-fr.org>,
"Trisal, Kalhan" <kalhan.trisal@...el.com>,
"Zhang, Xing Z" <xing.z.zhang@...el.com>,
Ira Snyder <iws@...o.caltech.edu>
Subject: Re: [RFC] Staging:IIO: New ABI
On Wed, Jan 20, 2010 at 16:37, Greg KH <greg@...ah.com> wrote:
> On Wed, Jan 20, 2010 at 03:13:40PM +0000, Jonathan Cameron wrote:
>> What: /sys/class/iio/ring_buffer[m]
>> Description:
>> 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
userspace.
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.
Thanks,
Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists