From owner-freebsd-usb@FreeBSD.ORG Tue Jul 28 11:51:47 2009 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4ED72106564A; Tue, 28 Jul 2009 11:51:47 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 028628FC1A; Tue, 28 Jul 2009 11:51:46 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=nXpFIIviiSIb6VbkcJRrTGof2rlrvUat7MGKUprnWrlOU14yf0f0Det51kaVmY2iguEsX6YqTEHSQ4qDi2b/0bJ56+zoEK6XIzaWeYf+dROtd/LIJ8Ok6mRyr1JIGsqIQHZOQ03Y/oU6h47reVwBxLe/m/jj+HUxAbkw5bEu6/Y=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1MVlDd-00026N-Md; Tue, 28 Jul 2009 15:51:45 +0400 Date: Tue, 28 Jul 2009 15:51:43 +0400 From: Eygene Ryabinkin To: bug-followup@FreeBSD.org, freebsd-usb@FreeBSD.org Message-ID: References: <20090727194459.393CFB8090@phoenix.codelabs.ru> <200907271950.n6RJo3jj021164@freefall.freebsd.org> <8RwwU1KLz1ezvFiU9HsY6uoNfkU@nflB3XSqYRRHWdyVHMOFGnCK5Pk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8RwwU1KLz1ezvFiU9HsY6uoNfkU@nflB3XSqYRRHWdyVHMOFGnCK5Pk> Sender: rea-fbsd@codelabs.ru Cc: Subject: Re: usb/137189: [usb][patch] create and use sysctl nodes for HID report descriptors X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2009 11:51:47 -0000 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 {_.-``-' {_/ #