On Mon, Jun 18, 2007 at 05:19:46PM -0400, Dave Mielke wrote: > [quoted lines by Greg KH on 2007/06/18 at 13:36 -0700] > > >No, we DO NOT PUT DEVICE NODES IN SYSFS! > > > >Sorry for yelling, but this comes up every 3-4 months or so for the past > >4-5 years and it's getting a bit annoying :) > > > >Device nodes go in /dev/ That's what the LSB specifies and to do > >something else will just wreck havoc with the system (permissions, acls, > >security, etc.) > > But we aren't discussing device files. We're discussing files which do no more > than return kernel-resident data in response to reads.. No need for writes, > ioctls, or even reads out on the bus. Just files which return data in the > format that many applications would like to see it in so that they don't have > to piece the information together from multiple sources, convert from text to > binary, etc. With this in mind, do you still think it's a bad idea?
What specific data do you want to see be being returned here? The USB configuration data? Like you read from the binary usbfs file if you open and read from it? If so, then I have no objection to that, as long as you are taking data directly from the device and not parsing it at all in the kernel and passing it on to userspace. That's the only way we allow a "binary" file in sysfs. Look at the PCI file called "config" in sysfs and see if that is what you are looking for. thanks, greg k-h ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users