Google
  Web www.spinics.net

Re: Passing argument to USB Storage driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Wed, Jan 09, 2008 at 08:12:07AM -0800, Kevin Lloyd wrote:
> On Jan 9, 2008 7:20 AM, Matthew Dharm <mdharm-usb@xxxxxxxxxxxxxxxxxx> 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: mdharm-usb@xxxxxxxxxxxxxxxxxx 
Maintainer, Linux USB Mass Storage Driver

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

Attachment: pgp2WdvM5rNXZ.pgp
Description: PGP signature

-------------------------------------------------------------------------
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
_______________________________________________
linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

[Home]     [Video for Linux]     [Photo]     [Yosemite Forum]     [Yosemite Photos]    [Video Projectors]     [PDAs]     [Hacking TiVo]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Big List of Linux Books]     [Free Dating]

  Powered by Linux