From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: Want to use hotplug
Date: Thu, 21 Nov 2002 01:50:51 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-103784356019453@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-103762638703987@msgid-missing>
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
prev parent reply other threads:[~2002-11-21 1:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-18 13:26 Want to use hotplug Karl F. Larsen
2002-11-21 1:50 ` David Brownell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-103784356019453@msgid-missing \
--to=david-b@pacbell.net \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).