Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 2009 15:51:43 +0400
From:      Eygene Ryabinkin <rea-fbsd@codelabs.ru>
To:        bug-followup@FreeBSD.org, freebsd-usb@FreeBSD.org
Subject:   Re: usb/137189: [usb][patch] create and use sysctl nodes for HID report descriptors
Message-ID:  </kNvT4PUQiAaILwpSOAKI37SlXY@CWODRlDR5RMqbkBfR0/UzHcfNhE>
In-Reply-To: <8RwwU1KLz1ezvFiU9HsY6uoNfkU@nflB3XSqYRRHWdyVHMOFGnCK5Pk>
References:  <20090727194459.393CFB8090@phoenix.codelabs.ru> <200907271950.n6RJo3jj021164@freefall.freebsd.org> <8RwwU1KLz1ezvFiU9HsY6uoNfkU@nflB3XSqYRRHWdyVHMOFGnCK5Pk>

next in thread | previous in thread | raw e-mail | index | archive | help
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?  I can enumerate all HID descriptors via libusb, but I
can't currently say which device uses them.  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.
-- 
Eygene
 _                ___       _.--.   #
 \`.|\..----...-'`   `-._.-'_.-'`   #  Remember that it is hard
 /  ' `         ,       __.--'      #  to read the on-line manual
 )/' _/     \   `-_,   /            #  while single-stepping the kernel.
 `-'" `"\_  ,_.-;_.-\_ ',  fsc/as   #
     _.-'_./   {_.'   ; /           #    -- FreeBSD Developers handbook
    {_.-``-'         {_/            #



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?/kNvT4PUQiAaILwpSOAKI37SlXY>