linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: Is this the official hotplug ?
Date: Sun, 05 Aug 2001 00:22:45 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-99697107101650@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-99692070315295@msgid-missing>

> Thanks for your answer. Do you know where I can find information
> on what happens when I plug a device to the usb port.

Some is at http://linux-hotplug.sourceforge.net/?selected=usb
but that's just focussing on the hotplug-related stuff, not
describing usbdevfs or how the kernel manages enumeration.


> I can see that /proc/bus/usb/devices gets information on my device. 

Good, the kernel didn't have problems enumerating it.


>    Now I
> would like to start a program, or script when this happens (ONLY
> when a certain device is inserted), how shall I do that,

One example:  http://jphoto.sourceforge.net/?selected=sync
That runs a script to download images from one type of camera,
when it's hooked up.  Similar setups have been used to download
device firmware, start PDA hotsync daemons, and so on.
(I suppose the hotplug site should get an example too...)

If you need to load a kernel driver _and_ run a script, then
the name of the module and script should be the same; you
won't even need to modify usb.handmap if your driver is
written correctly (using MODULE_DEVICE_TABLE so
that "depmod" does its magic).

- Dave



_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

      parent reply	other threads:[~2001-08-05  0:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-04 10:20 Is this the official hotplug ? Matts Kivik
2001-08-04 16:12 ` David Brownell
2001-08-04 20:01 ` Matts Kivik
2001-08-05  0:22 ` 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-99697107101650@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).