Fwd: Re: Merging usbdevs files from others BSD

Hans Petter Selasky hselasky at c2i.net
Fri Jul 6 06:56:47 UTC 2007


I'm forwarding this.


----------  Forwarded Message  ----------

Subject: Re: Merging usbdevs files from others BSD
Date: Friday 06 July 2007 03:14
From: Arnaud Lacombe <lacombar at gmail.com>
To: tech-kern at netbsd.org

On Wed, Jul 04, 2007 at 12:17:33PM +0200, Bernd Ernesti wrote:
> Then there is the different short vs. long names, which was allready
> mentioned that this would increase the kernel size and the additional new
> entries.

On the vendor point of view, the difference between long and short names is
 not really significative. But on the product point of view, out product's
 description are often longer.

After a build-test, I get this:

   text    data     bss     dec     hex filename
9089612  420996  365084 9875692  96b0ec nbsd-notverb.new
9089644  420996  365084 9875724  96b10c nbsd-notverb.old
9137009  420996  365084 9923089  976a11 nbsd-verb.new
9126611  420996  365084 9912691  974173 nbsd-verb.old

For USBVERBOSE kernel, we have a 10k size increase for approximatively 500
 new entries (150 vendors and 350 products). This give 20 bytes for each new
 entry, I find this reasonable.

The usbdevs file used for this build can be found here:


You'll also need this patch to match the few changes made to the names :

 - Arnaud


More information about the freebsd-usb mailing list