On Tue, Jun 27, 2006 at 02:09:49PM -0700, Martin Rubli wrote: > Applications could read from and write to extension units simply by using > the provided files. The mapping from the driver internal objects that > represent units, controls, etc. is pretty straightforward with the use of > kobjects.
You might want to use attribute groups instead of kobjects. Like the network core does. It's usually much easier that way. > Now the question: Does this sound like a good idea? Sounds good to me. > Is sysfs the right way to do such a thing or are there better > alternatives? It all depends on what you want to do. If you can express things with a single text value per file, sysfs is a good way to do this. > Our main concern is the number of kobjects that would be used in this > approach (a few dozen per camera). No, a kobject is only created per directory, not per attribute. And you don't need to worry about the size of kobjects, the bigger memory issue is the dentry and inodes of those kobjects, and sysfs handles that properly by pushing them out of memory when we get pressure. We can easily handle 10s of thousands of disks in sysfs on a 31 bit kernel (s390) with a very small ammount of ram. So a few extra video devices is not going to be a big deal at all :) thanks, greg k-h Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel