Re: [PATCH] PCI vendor and device strings in sysfs

From: Patrick Mochel (
Date: Thu Jul 17 2003 - 09:55:39 EST

> Here is a patch against 2.6.0-test1 to display PCI vendor and
> device strings in sysfs.
> At present, the PCI "name" attribute has a length restriction
> (DEVICE_NAME_SIZE) within which it tries to accomodate the vendor
> and device strings, leading to, in most cases, truncation of one
> or both strings.
> This patch alleviates the issue by creating the vendor_name and
> device_name attributes for PCI devices.

We don't necessarily need to keep the ASCII strings around at all, and in
the case in which CONFIG_PCI_NAMES=n, they are completely irrelevant. They
are pretty, but we could just export the vendor/device IDs and have a
userspace tool (e.g. sysutils from IBM) look up the name in a userspace


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:29 EST