[parisc-linux] enumerating devices from user space

Grant Grundler grundler@dsl2.external.hp.com
Fri, 14 Mar 2003 10:29:24 -0700


On Fri, Mar 14, 2003 at 02:08:48PM +0000, Matthew Wilcox wrote:
> On Fri, Mar 14, 2003 at 03:05:49PM +0100, Lyonel Vincent wrote:
> > okokok I won't argue then.
> > I would have liked to have ioscan-like support, but anyway...
> 
> Well, you can have it in 2.5; start looking at sysfs.

willy and I talked offline and it seems like the right
answer is to backport _the user interface_ - ie something
that *looks* like sysfs but could be based on /proc.

I'd basically like to see all resources in struct parisc_device
exported using the same name as the field - matching sysfs field
names use for PCI where appropriate. Willy suggested id be broken
out into it's struct parisc_device_id parts and provided
directly has hex strings (eg hw_type  entry could contain "0x5").
Details of how sysfs currently looks are still changing - don't get
hung up in the current details.

grant