lkml.org 
[lkml]   [2002]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: driverfs bus_id, name (was: [PATCH] /proc/scsi/map)

> I've been wondering about that. Right now PCI and USB both use fairly
> unfriendly/unpretty values in device.name ... "{PCI,USB} device VVVV:PPPP".
>
> Let me make sure I understand you right here, by examples of two
> changes I'd like to see. Correct me if these seem wrong:
>
> - It'd be more appropriate for PCI devices to copy pci_device.name into
> device.name and get the user-friendly names from the PCI device name
> database (when available), and only fallback to those nasty strings
> when the more user-friendly names aren't available.

That is what happens with PCI devices. They're not appearing as meaningful
names probably because CONFIG_PCI_NAMES isn't set. Whether or not that
information belongs in the kernel is another debate.

I believe the SCSI people mentioned something about being able to set
those from userspace. I'm not opposed to such an idea. You just need a
writable name file.

> - Likewise it'd be more appropriate for USB devices to take the
> descriptive strings from the devices, like "Philips USB Digital
> Speaker System", than "USB device 0471:0104".

Those are in the devices themselves, right? There is nothing stopping the
USB people from doing that... ;)

-pat

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.036 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site