Re: [PATCH RFC V3.5] leds: trigger: Introduce an USB port trigger

From: Alan Stern
Date: Thu Aug 25 2016 - 16:09:31 EST


On Thu, 25 Aug 2016, Alan Stern wrote:

> > Does the lsusb command do the mapping in the user space or maybe
> > it takes the names from kernel?
>
> lsusb does the mapping in userspace, based on an ID database. On my
> system (Fedora), the database is /etc/udev/hwdb.bin.

There's also /usr/share/hwdata/usb.ids -- I don't know if or how the
two databases are related. And there's /usr/lib/udev/hwdb.d/20-usb*.

Alan Stern