linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Want to use hotplug
@ 2002-11-18 13:26 Karl F. Larsen
  2002-11-21  1:50 ` David Brownell
  0 siblings, 1 reply; 2+ messages in thread
From: Karl F. Larsen @ 2002-11-18 13:26 UTC (permalink / raw)
  To: linux-hotplug


	I'm working on documentation for installing a scanner in Linux 
and now that almost all scanners are USB port users we now need to load 
the scanner module and two hex numbers to the kernel as we boot up. I am 
doing it with insmod and /etc/modules.conf. 

	I'm told hotplug is easier and better, but I don't know how to 
do it.

-- 
                      
               - Karl Larsen k5di Las Cruces,NM Az ScQRPions -



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Want to use hotplug
  2002-11-18 13:26 Want to use hotplug Karl F. Larsen
@ 2002-11-21  1:50 ` David Brownell
  0 siblings, 0 replies; 2+ messages in thread
From: David Brownell @ 2002-11-21  1:50 UTC (permalink / raw)
  To: linux-hotplug

Karl F. Larsen wrote:
> 	I'm working on documentation for installing a scanner in Linux 
> and now that almost all scanners are USB port users we now need to load 
> the scanner module and two hex numbers to the kernel as we boot up. I am 
> doing it with insmod and /etc/modules.conf. 
> 
> 	I'm told hotplug is easier and better, but I don't know how to 
> do it.Hmm, let's see.  There are two basic ways you might be working:

  - kernel driver.  /etc/modules.conf would have the product and
    vendor ids as module parameters.

  - user mode driver.  how do those get set up?  (this seems to
    be the direction for future scanner support.)

In both cases you'd likely create /etc/hotplug/usb/scanner.usermap
to list the product and vendor ID for the scanners you're interested
in.  The 2.5 kernel driver doesn't have a MODULE_DEVICE_TABLE in the
driver, which complicates things especially if you've got more
than one kind of scanner  But presumably you know how to deal with
that issue if you're documenting current practice.

I'd basically expect some /etc/hotplug/usb/scanner shell script
to do whatever magic is needed to let the user mode code know
about the scanner.  It might use the $REMOVER mechanism, which
you'll see in /etc/hotplug/usb.agent, and ensure that specific
usbfs device ($DEVICE) is accessible (chown/chmod) and published
(symlink killed by $REMOVER?) to the user mode driver.

You can see http://linux-hotplug.sourceforge.net/?selected=usb
for background, some of which may help you.

- Dave



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-21  1:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-18 13:26 Want to use hotplug Karl F. Larsen
2002-11-21  1:50 ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).