Re: Exporting PCI ROMs via syfs

From: Greg KH
Date: Fri May 21 2004 - 21:58:02 EST


On Fri, May 21, 2004 at 07:38:31PM -0400, Valdis.Kletnieks@xxxxxx wrote:
> On Thu, 20 May 2004 18:05:10 PDT, Jon Smirl <jonsmirl@xxxxxxxxx> said:
> > GregKH has suggested that a good interface for accessing the contents of PCI
> > ROMs from user space would be to make them available from sysfs. What would be a
> > good way to structure the code for doing this? Should this be part of the pci
> > driver, and how would this interface into class_simple to make the attribute
> > appear?
>
> Hmm... how do you make that fit with the "one file, one value" rule for sysfs?
> Have the "one value" be a nnnK binary blob representing the ROM image?

Exactly, just like the pci "config" file is in sysfs today.

thanks,

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