[sane-devel] devfs and scanner detection

Mr E_T troll at logi.net.au
Thu Aug 21 15:35:54 BST 2003


On Thu, 21 Aug 2003, Henning Meier-Geinitz wrote:

> Hi,
>
> On Mon, Aug 18, 2003 at 09:14:16PM +0800, Mr E_T wrote:
> > cups solves this problem by having a underlying usb/parport/... driver that the
> > various others use.
> >
> > If this underlying driver finds the existing devices first and then the mid
> > level drivers then access the data through them then would this be acceptable?
>
> Well, we don't have a underlying driver. We have libs for usb/scsi
> access but they are linked to each backend. We would need some sort of
> daemon to do this kind of detection but that would lose a lot of
> flexibility.
>
No at the moment you are loading the backends and having them do the detection.

If you load the backends and have a function get the device ids and type -
eg Mustek 1200 ub plus (or numeric equivilent of)

then invoke the device files to check the "id" against the id list

after which you can unload unneeded backends.

this would only check each device once.

It would involve moving the detection routine and creating a "plugin register
function"

I have just been scanning the backend and sanei sources to come to this
conclusion.

I beleive that most of the peices are in place - but a reordering is needed.

-- 
regs MR E_T
_______________________
\                      \
  \   OOHH I hate TYPOS  \
    \                      \
      ~~~~~~~~~~~~~~~~~~~~~~~




More information about the sane-devel mailing list