From owner-freebsd-current@FreeBSD.ORG Fri Oct 17 04:43:36 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3BF61065686 for ; Fri, 17 Oct 2008 04:43:36 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 992F68FC14 for ; Fri, 17 Oct 2008 04:43:36 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from Macintosh-4.local ([10.0.0.194]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m9H4hX1R049484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 16 Oct 2008 21:43:33 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <48F817F5.70604@freebsd.org> Date: Thu, 16 Oct 2008 21:43:33 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: Hans Petter Selasky References: <20081015173319.GB46393@elvis.mu.org> <200810152124.12637.hselasky@c2i.net> In-Reply-To: <200810152124.12637.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-DCC-sonic.net-Metrics: ebb.errno.com; whitelist Cc: current@freebsd.org Subject: Re: (forw) Re: USB4BSD - release candidate 2 - coming to FreeBSD this week. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2008 04:43:37 -0000 Hans Petter Selasky wrote: > Hi, > >> 1. libusb_20 appears to be undocumented (the manual page looks to be a >> placeholder) and the only example of use (usbconfig) has zero comments. > > There is some work left to do there. > > Any help going through the USB library would be appreciated. w/o documentation or comments to go by not sure what "help" you figure to get > >> 2. is there any way to list the set of quirks in the usb2_quirk module? >> I don't think going back to the source is sufficient as you may only >> have a binary to work with. > > Not at the moment, but I could possibly extend "usbconfig" to list available > quirks. I've made a note for this. It may also be useful to add a ddb command now that they can be loaded together with a module. In fact I suspect there are several usb specific ddb cmds that might be useful. > >> 3. similarly for the driver container modules can one see the set of >> drivers bundled? > > No. You will have to inspect the module "DATA_SET()" information in the kld. > >> 4. I'm interested to understand why these container modules exist >> instead of individual drivers. > > They exist to make loading USB drivers easier. It is simpler to > load "usb2_serial" than to emperically search for a specific serial port > driver. In the future the "usb2_serial" module will load the correct driver > for you. > >> I don't see anything in the manual pages >> that references the drivers, can one still configure a kernel w/ only >> the specific drivers present on a system? (e.g. for embedded use) If so >> please fix the manual pages. > > Yes, of course you can still ungroup the driver modules into smaller parts, > simply by moving the source files to another module, or removing the source > files for the drivers you don't want. But there are no kernel options that > will do that currently. You have to do it by hand until further. This sounds like a design mistake. You should be able to do container modules entirely with module dependencies. No need to edit code and all the drivers remain usable individually. > >> 5. The man page description of the usb2_template module is unclear to >> me. I suspect an example would help. > > I have made a note for this. > >> 6. Many files lack a copyright/license (e.g. modules/*). > > It is BSD licensed like the rest of the code. Not w/o a license. > > --HPS > > BTW: I will travel to EuroBSDcon2008 tomorrow and will probably not have > access to e-mail all the time. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > >