On Wed, 2008-03-12 at 13:47 +0800, Lei Chen wrote:
> If I need to add scanner's device node to device_map, then I will have
> to add all the possible scanner's device node. There're more than 1440
> models of scanners, with 760 supported by SANE at present[1](Possibly
> more will appear). More than 760 items will be added to the device_map
> like this:
>
> scanner:\
> scanner:\
> /dev/usb/4b8.11d/0/cntrl0/dev/usb/4b8.11d/0/cntrl0stat
> /dev/usb/4b8.11d/0/devstat
>
> I'm not sure if it's feasible.
I am sure. It's not feasible.
In order to meaningfully use device allocation with ugen devices,
someone will need to extend the framework to provide some mechanism
other than the /dev pathname to identify devices.
- Bill