Re: Passing argument to USB Storage driver

Matthew Dharm <[email protected]> Wed, 9 Jan 2008 10:59:54 -0800
Newsgroups gmane.linux.usb.devel
Organization One Eyed Alien Networks
Message-ID <[email protected]>
On Wed, Jan 09, 2008 at 08:12:07AM -0800, Kevin Lloyd wrote:
> On Jan 9, 2008 7:20 AM, Matthew Dharm <[email protected]> wrote:
> > Why not use libusb from userspace to send these control messages?  Why mess
> > with the driver at all?
> It certainly is a possibility, it would be nice to have all of the
> device control related
> code in one location (i.e. in the driver). It also seems like over
> kill to have a dedicated
> process just to do this.
> Does anyone know if there is a way to configure the system so that a particular
> executable is run upon detection of a specific device (VID/PID)?

Look up udev -- it's designed for exactly such a scenario.

> > Do these control messages look anything like SCSI commands?  Or are they
> > real "control endpoint" messages?
> They are real control endpoint messages (which I understand would
> still be able to
> send via libusb).

Yes, you can.  If they happened to look like SCSI commands, you could have
also sent them via the SG_IO interface.

Matt

-- 
Matthew Dharm                              Home: [email protected] 
Maintainer, Linux USB Mass Storage Driver

Pitr!  That's brilliant!  Funded by Microsoft refunds.  What sweet irony!
					-- A.J.
User Friendly, 2/15/1999

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHhRmqHL9iwnUZqnkRAlSiAJ9BVU7W68K2Df1vxoZW/XGQTw0RAgCginBm
pL7LYvAGua0EDZsyQxArXlk=
=dX9R
-----END PGP SIGNATURE-----