Date: Tue, 28 Jul 2009 14:13:25 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: rea-fbsd@codelabs.ru Cc: freebsd-usb@freebsd.org, bug-followup@freebsd.org Subject: Re: usb/137189: [usb][patch] create and use sysctl nodes for HID report descriptors Message-ID: <200907281413.26204.hselasky@c2i.net> In-Reply-To: </kNvT4PUQiAaILwpSOAKI37SlXY@CWODRlDR5RMqbkBfR0/UzHcfNhE> References: <20090727194459.393CFB8090@phoenix.codelabs.ru> <8RwwU1KLz1ezvFiU9HsY6uoNfkU@nflB3XSqYRRHWdyVHMOFGnCK5Pk> </kNvT4PUQiAaILwpSOAKI37SlXY@CWODRlDR5RMqbkBfR0/UzHcfNhE>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 28 July 2009 13:51:43 Eygene Ryabinkin wrote: > Hans Petter, good day. > > HPS wrote: > > Can you change your patch, so that usbhidctl uses libusb to get the > > HID descriptor, instead of sysctl? > > I can, but how to relate the device name under devfs to the descriptor > to be retrieved? By unit number and device address, like usbconfig. > I can enumerate all HID descriptors via libusb, but I > can't currently say which device uses them. Try: usbconfig show_ifdrv > And I don't want to torture > users with the crawl over the list of all vendor/device pairs for the > discovered HID descriptors and ask to choose one -- that's not > productive. > > Why do you dislike the sysctl approach? It is simple and reliable. It's duplicating access to data. There is not that much wrong about it, except it will not work if the device is of another kind. I.E. you would have to patch the HID sysctl node into every driver accessing HID descriptors? --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907281413.26204.hselasky>