Subject: device info. from /dev/uscanner*
To: None <current-users@netbsd.org>
From: None <brook@biology.nmsu.edu>
List: current-users
Date: 06/21/2004 17:52:05
I am trying to fix sane to work with a scanner via /dev/scanner*.
During its probing, sane needs to obtain information on the vendor and
device IDs from the driver.

Given a file descriptor for /dev/scanner*, how can one get information
about the USB vendor and device IDs?  There are no ioctls for this
now, but I'm wondering about implementing one.  The problem is I'm not
sure what the driver would do to obtain that information in response
to an ioctl call.

Any help is greatly appreciated.

Cheers,
Brook